You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@
7
7
8
8
This is an example application for the HD4470-compatible LCD1602 device connected via an I2C backpack.
9
9
10
-
It is written and tested for v2.1.1 and v3.0 of the [ESP-IDF](https://github.com/espressif/esp-idf) environment, using the xtensa-esp32-elf toolchain (gcc version 5.2.0).
10
+
This application is also usable with an LCD2004 module (20 columns, 4 rows), by uncommenting the `LCD_NUM_ROWS`, `LCD_NUM_COLUMNS`, and `LCD_NUM_VISIBLE_COLUMNS` definitions at the top of `app_main.c`.
11
+
12
+
It is written and tested for v3.3 of the [ESP-IDF](https://github.com/espressif/esp-idf) environment, using the xtensa-esp32-elf toolchain (gcc version 5.2.0).
11
13
12
14
Ensure that submodules are cloned:
13
15
@@ -16,8 +18,9 @@ Ensure that submodules are cloned:
16
18
Build the application with:
17
19
18
20
$ cd esp32-i2c-lcd1602-example.git
19
-
$ make menuconfig # set your serial configuration and the I2C GPIO - see below
20
-
$ make flash monitor
21
+
$ idf.py menuconfig # set your serial configuration and the I2C GPIO - see below
22
+
$ idf.py build
23
+
$ idf.py -p (PORT) flash monitor
21
24
22
25
The program should detect your connected device and display some demonstration text on the LCD.
23
26
@@ -32,7 +35,9 @@ This application makes use of the following components (included as submodules):
32
35
33
36
To run this example, connect one LCD1602 device to two GPIOs on the ESP32 (I2C SDA and SCL). If external pull-up resistors are not provided with the sensor, add a 10 KOhm resistor from each GPIO to the 3.3V supply.
34
37
35
-
`make menuconfig` can be used to set the I2C GPIOs and LCD1602 device I2C address.
38
+
`idf.py menuconfig` can be used to set the I2C GPIOs and LCD1602 device I2C address.
39
+
40
+
Note that the 3.3V supply may be insufficient to run the display satisfactorily. In this case I suggest using a 5V supply to the LCD display, and using appropriate level shifter circuitry on the I2C SCL and SDA connections.
0 commit comments