Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattytrentini/micropython-tmp1075
A MicroPython driver for the TI TMP1075 temperature sensor
https://github.com/mattytrentini/micropython-tmp1075
Last synced: 25 days ago
JSON representation
A MicroPython driver for the TI TMP1075 temperature sensor
- Host: GitHub
- URL: https://github.com/mattytrentini/micropython-tmp1075
- Owner: mattytrentini
- License: mit
- Created: 2019-03-24T12:34:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-14T00:05:36.000Z (over 3 years ago)
- Last Synced: 2024-04-22T13:30:44.194Z (8 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - micropython-tmp1075 - Driver for the TI TMP1075 temperature sensor. (Libraries / Sensors)
README
# micropython-tmp1075
A MicroPython driver for the [TI TMP1075 temperature sensor](http://www.ti.com/product/TMP1075)Currently only supports querying of the temperature.
## Usage
```python
i2c = I2C(sda=Pin(33), scl=Pin(32), freq=133000)
tmp1075 = Tmp1075(i2c)
tmp1075.get_temperature()
```## Unit tests
Expects the MicroPython [unittest](https://github.com/micropython/micropython-lib/tree/master/unittest) module to be installed.
```python
import unittest
unittest.main('test_tmp1075')
```