-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
hi, thanks for the library.
on example:
from mlx90614 import MLX90614
thermometer_address = 0x5a
thermometer = MLX90614(thermometer_address)
print thermometer.get_amb_temp()
print thermometer.get_obj_temp()
You call the method:
thermometer.get_amb_temp()
thermometer.get_obj_temp()
and its not exist in your class MLX90614, so a changed my code for:
from smbus2 import SMBus
from mlx90614 import MLX90614
bus = SMBus(1)
sensor = MLX90614(bus, address=0x5A)
print (sensor.get_object_1())
#print (sensor.get_object_2()) #Don't worked
bus.close()
and it worked for me
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels