Illustration 1: LCD 1602 connected via I2C to ESP8266 |
Setup Arduino IDE
First we need to install LiquidCrystal-I2C-library.- Download lib as .zip from link above
- Install it (without unzipping) manually.
- Sketch -> Include Library -> Add .zip Library -> select downloaded LiquidCrystal lib
Illustration 2: Arduino IDE Menu |
Wiring
In this example I used a module marked with "MH". For this module the hardware address for lcd is 0x3F. If you have an other module you have to google it.
We use SPI connection to save up some wires.
We use SPI connection to save up some wires.
Now let do the wiring schematic:
Connect the module like the picture below to your display. For detailed wiring information have a look to the pin connection in code comments below. Optional the module is soldered to your lcd so you can continue to wiring to ESP8266.
Connect the module like the picture below to your display. For detailed wiring information have a look to the pin connection in code comments below. Optional the module is soldered to your lcd so you can continue to wiring to ESP8266.
Illustration 3: I2C Module |
Keine Kommentare:
Kommentar veröffentlichen