Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisbalmer/micropython-si7021
https://github.com/chrisbalmer/micropython-si7021
Last synced: about 16 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/chrisbalmer/micropython-si7021
- Owner: chrisbalmer
- License: mit
- Created: 2016-12-31T20:57:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-05T01:28:24.000Z (almost 8 years ago)
- Last Synced: 2024-04-22T13:30:44.217Z (7 months ago)
- Language: Python
- Size: 206 KB
- Stars: 14
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mpython - micropython-si7021 - SI7021 Temperature and humidity sensor, I2C interface. (精选驱动库 / 传感器)
- awesome-micropython - micropython-si7021 - SI7021 Temperature and humidity sensor, I2C interface. (Libraries / Sensors)
README
# Si7021 Library
This is a micropython driver written for the [Adafruit Si7021](https://www.adafruit.com/products/3251) breakout. The included example is designed to run on an Adafruit Feather Huzzah but can be easily modified for other controllers by changing the pins used.
Some parts based on the [Adafruit Si7021 C++ driver](https://github.com/adafruit/Adafruit_Si7021).
## Requirements:
- MicroPython (tested on v1.8.6)
- [Adafruit Si7021](https://www.adafruit.com/products/3251)## Example:
![Fritzing Diagram](example.png?raw=true "Fritzing Diagram")
```
>>> import example
>>> example.run_example()
Serial: 2883507688463925247
Identifier: Si7021
Temperature: 21.88713
Relative Humidity: 30.55624Module reset.
Temperature: 21.89787
Relative Humidity: 30.53336
Fahrenheit: 71.45477
>>>
```