grove.grove_high_accuracy_temperature

This is the code for

Examples


import sys import time from grove.factory import Factory from grove.temperature import Temper

print(“Insert Grove - I2C-High-Accuracy-Temperature”) print(” to Grove-Base-Hat any I2C slot”)

sensor = Factory.getTemper(“MCP9808-I2C”) sensor.resolution(Temper.RES_1_16_CELSIUS)

print(‘Detecting temperature…’) while True:

print(‘{} Celsius’.format(sensor.temperature)) time.sleep(1)

Classes

class grove.grove_high_accuracy_temperature.Temper(pin)[source]

Inheritance

digraph inheritanceeab70c94d1 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "Temper" [URL="grove.temperature.html#grove.temperature.Temper",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; }