Giter Site home page Giter Site logo

aht's People

Contributors

etno712 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

shmm2010

aht's Issues

AttributeError: 'AHT2x' object has no attribute '__status'

when i try to run this code:

import time, machine
import aht

Example SCL pin and SDA pin for WEMOS D1 mini Lite

i2c = machine.I2C(1,scl=machine.Pin(22), sda=machine.Pin(21))
sensor = aht.AHT2x(i2c, crc=True)

To print one of measures:

print("Humidity: {:.2f}".format(sensor.humidity))
print("Temperature: {:.2f}".format(sensor.temperature))

I get:
Traceback (most recent call last):
File "", line 3, in
File "aht.py", line 164, in
File "aht.py", line 45, in init
File "aht.py", line 56, in is_calibrated
AttributeError: 'AHT2x' object has no attribute '__status'

Crumb Trail

Bonjour Jonathan,

First, thank you for supporting FOSS and providing this code. I am making good use of it in my projects.
As you might notice in the other issue (#1), I had some problems with IIC recently, and I was trying to see if I had the newest version of the driver.

What I found is that there are dozens of drivers, and after the time had passed, I had trouble finding this repository again.

So, I recommend that you include this github URL in the python code at the top - like you have done with the url to the manufacturer.

Thanks and Best Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.