Skip to content

Example Error #6

Description

@joaojcsq

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions