i2c error ???? help #17163
Replies: 5 comments 6 replies
|
What are you seeing in the program output? Is it a problem of no devices being detected? |
|
Also, if you're building your own sensor class, I recently did this for a BH1750 ambient light sensor and documented the process. You can find it here: https://github.com/DavesCodeMusings/BH1750-MicroPython Maybe something in my notes will help. |
|
There is nothing wrong with the code, it runs correctly for me and it's very generic anyway. You need to look to your hardware, do you have pullup resistors on the I2C lines? Are you sure SDA and SCL are correctly assigned? |
|
Why use SoftI2C on a hardware I2C peripheral? |
|
You have sda and scl pins reversed in your Class compared to your basic test. |
Uh oh!
There was an error while loading. Please reload this page.
sorry ...because it doesn't work.... I'm going crazy
All reactions