[Solved] Help with LCD I2C

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Panos45
Posts: 2
Joined: Thu Sep 03, 2020 12:23 am

[Solved] Help with LCD I2C

Post by Panos45 » Thu Sep 03, 2020 12:33 am

I have recently picked up micropython and I am trying to connect an LCD 1602 with PCF8574 backpack for I2C on an esp8266. I have found 2 modules on GitHub, but I have no ideas how to import them on to my Sketch. Do I just save them in the tree directory? I am using uPyCraft.
Last edited by Panos45 on Fri Sep 04, 2020 12:45 am, edited 1 time in total.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Help with LCD I2C

Post by jimmo » Thu Sep 03, 2020 6:24 am

Panos45 wrote:
Thu Sep 03, 2020 12:33 am
Do I just save them in the tree directory? I am using uPyCraft.
I'm not sure how uPyCraft works, but you will need to copy the files to the device. I recommend either rshell (https://github.com/dhylands/rshell) or pyboard.py (http://docs.micropython.org/en/latest/r ... rd.py.html)

Panos45
Posts: 2
Joined: Thu Sep 03, 2020 12:23 am

Re: Help with LCD I2C

Post by Panos45 » Fri Sep 04, 2020 12:44 am

Problem solved, I just had to copy all the code to a new file and upload it to the esp, but my main problem was poor cable connections, since I was getting unstable address readings on the I2C bus. Changed the cables and works like a charm! uPython looks much better than Arduino! Thanks for the help!

Post Reply