micropython-Chinese-Community / mpy-lib

HTS221, LPS22, LIS2DW12, LIS2MDL, LSM6DSO, STTS751, si7051, bme280, bmp280, APDS9930, TM1650, TM1637, LCD1602, GNSS, all kinds of micropython drives, examples, libs
MIT License
173 stars 73 forks source link

Error running the bmp280.py #14

Open henriquebrnetto opened 2 years ago

henriquebrnetto commented 2 years ago

I am having an error trying to run the test for the bmp280 sensor. This is the error showing:

File "bmp280.py", line 9, in init File "bmp280.py", line 45, in get2Reg File "bmp280.py", line 41, in getReg OSError: [Errno 19] ENODEV

How do I solve this? Thanks

ONE1CHINA commented 1 year ago

same

shaoziyang commented 1 year ago

It mabye i2c bus error, please use i2c.scan() first to ensure bus connect correctly.

And SDO signal affects i2c address setting, please refer to the instructions in the readme.