'module' object has no attribute 'BH1750FVI'
-
hi~
In web page(https://docs.pycom.io/tutorials/hardware/i2c/),
When I run code main.py, AttributeError : 'module' object has no attribute 'BH1750FVI'
The files, bh1750fvi.py and main.py are saved in same folder.What I check? please~
-
Hi Sung-Pil Kim
I have just checked this myself and it appears to import. Is the file
bh1750fvi.pydefinitely uploaded to the board?May I check which board and expansion board are you using.
Kind Regards
Matthew -
@sung-pil-kim-0:
you must tell us more basic informations like hardware used and other thigs. Foto of setup will be also helpfull.When I run code main.py,
how do you run the code?
-
@livius Thank you very much for your answer.
I have WiPy 3.0 and Expansion board 3.0. I 'run' the code(run button click)Today(2021-02-19) I uploaded the code(main.py and bh1750fvi.py).
It works!!Thank you.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login