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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
Why use SoftI2C on a hardware I2C peripheral? |
Beta Was this translation helpful? Give feedback.
-
You have sda and scl pins reversed in your Class compared to your basic test. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
sorry ...because it doesn't work.... I'm going crazy
Beta Was this translation helpful? Give feedback.
All reactions