MicroPython driver for the AHT10 and AHT20 temperature and humidity sensors.
Project description
micropython_ahtx0
MicroPython driver for the AHT10 and AHT20 temperature and humidity sensors.
Example usage
import utime
from machine import Pin, I2C
import ahtx0
# I2C for the Wemos D1 Mini with ESP8266
i2c = I2C(scl=Pin(5), sda=Pin(4))
# Create the sensor object using I2C
sensor = ahtx0.AHT10(i2c)
while True:
print("\nTemperature: %0.2f C" % sensor.temperature)
print("Humidity: %0.2f %%" % sensor.relative_humidity)
utime.sleep(5)
Changelog
0.1.2
- fixed packaging
0.1.1
- fixed code style and typos
0.1.0
- initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file micropython-ahtx0-0.1.2.tar.gz.
File metadata
- Download URL: micropython-ahtx0-0.1.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c64f80d112563d300b695de3932feabced94e8a3bbb1e9c473da0d4c0ef4db61
|
|
| MD5 |
ca6b8dc0ec71073027d5c84a3bee38e1
|
|
| BLAKE2b-256 |
9128da5317fbfdbaccc6a59b8269fbb652229ce15b1258c1ddb7c9cfb7a88107
|
File details
Details for the file micropython_ahtx0-0.1.2-py3-none-any.whl.
File metadata
- Download URL: micropython_ahtx0-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fe3feacbae49527ec21242407122241a42c1ec61bbce2774a02a9c91bf41a83
|
|
| MD5 |
ed5644cac3e4eb8e4fac43994d1f53f6
|
|
| BLAKE2b-256 |
67ed3599562590e01fb58aa582b1a1b1a16a815477fb202533425a80faf4d516
|