micropython-ahtx0


Namemicropython-ahtx0 JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/targetblank/micropython_ahtx0
SummaryMicroPython driver for the AHT10 and AHT20 temperature and humidity sensors.
upload_time2023-10-12 18:04:36
maintainer
docs_urlNone
authorAndreas Bühl
requires_python
license
keywords aht10 aht20 micropython temperature humidity sensor i2c
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # micropython_ahtx0

MicroPython driver for the AHT10 and AHT20 temperature and humidity sensors.

## Example usage

```python
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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/targetblank/micropython_ahtx0",
    "name": "micropython-ahtx0",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "aht10,aht20,micropython,temperature,humidity,sensor,i2c",
    "author": "Andreas B\u00fchl",
    "author_email": "code@abuehl.de",
    "download_url": "https://files.pythonhosted.org/packages/91/28/da5317fbfdbaccc6a59b8269fbb652229ce15b1258c1ddb7c9cfb7a88107/micropython-ahtx0-0.1.2.tar.gz",
    "platform": null,
    "description": "# micropython_ahtx0\n\nMicroPython driver for the AHT10 and AHT20 temperature and humidity sensors.\n\n## Example usage\n\n```python\nimport utime\nfrom machine import Pin, I2C\n\nimport ahtx0\n\n# I2C for the Wemos D1 Mini with ESP8266\ni2c = I2C(scl=Pin(5), sda=Pin(4))\n\n# Create the sensor object using I2C\nsensor = ahtx0.AHT10(i2c)\n\nwhile True:\n    print(\"\\nTemperature: %0.2f C\" % sensor.temperature)\n    print(\"Humidity: %0.2f %%\" % sensor.relative_humidity)\n    utime.sleep(5)\n```\n\n## Changelog\n\n### 0.1.2\n\n- fixed packaging\n\n### 0.1.1\n\n- fixed code style and typos\n\n### 0.1.0\n\n- initial release\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "MicroPython driver for the AHT10 and AHT20 temperature and humidity sensors.",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/targetblank/micropython_ahtx0"
    },
    "split_keywords": [
        "aht10",
        "aht20",
        "micropython",
        "temperature",
        "humidity",
        "sensor",
        "i2c"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67ed3599562590e01fb58aa582b1a1b1a16a815477fb202533425a80faf4d516",
                "md5": "ed5644cac3e4eb8e4fac43994d1f53f6",
                "sha256": "6fe3feacbae49527ec21242407122241a42c1ec61bbce2774a02a9c91bf41a83"
            },
            "downloads": -1,
            "filename": "micropython_ahtx0-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ed5644cac3e4eb8e4fac43994d1f53f6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4338,
            "upload_time": "2023-10-12T18:04:34",
            "upload_time_iso_8601": "2023-10-12T18:04:34.751592Z",
            "url": "https://files.pythonhosted.org/packages/67/ed/3599562590e01fb58aa582b1a1b1a16a815477fb202533425a80faf4d516/micropython_ahtx0-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9128da5317fbfdbaccc6a59b8269fbb652229ce15b1258c1ddb7c9cfb7a88107",
                "md5": "ca6b8dc0ec71073027d5c84a3bee38e1",
                "sha256": "c64f80d112563d300b695de3932feabced94e8a3bbb1e9c473da0d4c0ef4db61"
            },
            "downloads": -1,
            "filename": "micropython-ahtx0-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ca6b8dc0ec71073027d5c84a3bee38e1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3387,
            "upload_time": "2023-10-12T18:04:36",
            "upload_time_iso_8601": "2023-10-12T18:04:36.592944Z",
            "url": "https://files.pythonhosted.org/packages/91/28/da5317fbfdbaccc6a59b8269fbb652229ce15b1258c1ddb7c9cfb7a88107/micropython-ahtx0-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-12 18:04:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "targetblank",
    "github_project": "micropython_ahtx0",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "micropython-ahtx0"
}
        
Elapsed time: 0.20147s