mattytrentini / micropython-tmp1075

A MicroPython driver for the TI TMP1075 temperature sensor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

micropython-tmp1075

A MicroPython driver for the TI TMP1075 temperature sensor

Currently only supports querying of the temperature.

Usage

    i2c = I2C(sda=Pin(33), scl=Pin(32), freq=133000)
    tmp1075 = Tmp1075(i2c)
    tmp1075.get_temperature()

Unit tests

Expects the MicroPython unittest module to be installed.

    import unittest
    unittest.main('test_tmp1075')

About

A MicroPython driver for the TI TMP1075 temperature sensor

License:MIT License


Languages

Language:Python 100.0%