mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
temperature: added C sources and removed grove dependency
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Noel Eck

parent
af61f51e48
commit
67d01a9393
@ -22,10 +22,10 @@
|
||||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
import time
|
||||
import pyupm_grove as grove
|
||||
import pyupm_temperature as upm
|
||||
|
||||
# Create the temperature sensor object using AIO pin 0
|
||||
temp = grove.GroveTemp(0)
|
||||
temp = upm.Temperature(0)
|
||||
print temp.name()
|
||||
|
||||
# Read the temperature ten times, printing both the Celsius and
|
Reference in New Issue
Block a user