Conversation
|
Hey @paulohumberto42, I just want to chime in and say I've run your test on a Huzzah32 and it works perfectly. I happen to have an lcd backpack based on a PCF8574A and the only thing I noticed that its address is in between In terms of code, I noticed that Also, to be consistent, the filenames should probably be changed to In any case, I'd like to thank you b/c now I can happily use my esp32 with that lcd ;-) |
|
Hello @remcoder ! |
|
Thank you, @paulohumberto42 ! FWIW this code is working in the mainline 1.16 release (esp32-20210623-v1.16.bin from micropython.org site). One note, it looks like things have changed with how micropython calls the I2C code, and your sda/scl pins are backwards. Referncing https://docs.micropython.org/en/latest/esp32/quickref.html#hardware-i2c-bus, sda should be 19, scl is pin 18. You can initiate the bus with or if you want to specify the pins. Obviously alternate pins would require using the secondary I2C bus, or using |
Hello! I added some code to use I2C over a ESP32 using micropython. Instead of using smbus I am using Machine.I2C