'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~
-
@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.
-
@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?
-
Hi Sung-Pil Kim
I have just checked this myself and it appears to import. Is the file
bh1750fvi.py
definitely uploaded to the board?May I check which board and expansion board are you using.
Kind Regards
Matthew