Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'module' object has no attribute 'AM2320' #3

Open
Mantikor opened this issue Feb 19, 2017 · 0 comments
Open

AttributeError: 'module' object has no attribute 'AM2320' #3

Mantikor opened this issue Feb 19, 2017 · 0 comments

Comments

@Mantikor
Copy link

MicroPython v1.8.7-7-gb5a1a20a3 on 2017-01-09; ESP module with ESP8266
Type "help()" for more information.

from machine import I2C, Pin
import am2320
import os
os.listdir()
['boot.py', 'webrepl_cfg.py', 'am2320.py']
i2c = I2C(scl=Pin(5), sda=Pin(4), freq=20000)
dht = am2320.AM2320(i2c)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'AM2320'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant