Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/billyrayvalentine/micropython-Si705x
A MicroPython library for the I2C Silicon Labs Si705x series of temperature sensors
https://github.com/billyrayvalentine/micropython-Si705x
Last synced: about 16 hours ago
JSON representation
A MicroPython library for the I2C Silicon Labs Si705x series of temperature sensors
- Host: GitHub
- URL: https://github.com/billyrayvalentine/micropython-Si705x
- Owner: billyrayvalentine
- License: mit
- Created: 2017-01-12T17:22:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-12T22:35:00.000Z (almost 8 years ago)
- Last Synced: 2024-04-22T13:30:45.042Z (7 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mpython - micropython-Si705x - Silicon Labs Si705x series of temperature sensors, I2C interface. (精选驱动库 / 传感器)
- awesome-micropython - micropython-Si705x - Silicon Labs Si705x series of temperature sensors, I2C interface. (Libraries / Sensors)
README
README.md
# micropython-Si705x
A MicroPython library for the I2C [Silicon Labs Si705x](http://www.silabs.com/products/sensors/temperature-sensors/Pages/temperature-sensors.aspx) series of temperature sensors.
This library should work with the Si7050 Si7051 Si7053 Si7054 Si7055**This module has currently only been tested on the Si7055. Please report your milage**
# Methods
There are only three methods:```get_temperature``` - Perform a measurement and return the temperature in Celsius
```get_model``` - Return the hardware model e.g. Si7055
```get_firmware_version``` - Return the hex value of the firmware version
# Example in REPL
```python
>>> from machine import Pin, I2C
>>> from Si705x import Si705x
>>> i2c = I2C(scl=Pin(5), sda=Pin(4))
>>> sensor = Si705x(i2c)
>>> sensor.get_temperature()
23.82838
>>> sensor.get_model()
'Si7055'
>>> sensor.get_firmware_version()
'0x20'
```# License
MIT