If you buy the ESP32-S2 LCD from Waveshare with LCD (two versions are available with display), you can start quickly without soldering to use it. That's cool because there is On-board 0.96inch 160×80 pixels 65K color IPS LCD.
Unfortunately, the examples for this board do not explain anything that is really important for use with MicroPython. I myself had extreme problems getting the LCD to work until I finally found the right information on the net. This tutorial shows a few basics for using the display.
- ESP32-S2 MCU WiFi Development Board with LCD (Waveshare)
Example
# create local script
$ touch ~/Projects/ESP/examples/display/esp32-s2-lcd_basics.py
# download driver module
$ curl -L 'https://raw.githubusercontent.com/Lupin3000/ESP/master/lib/st7735s_096_lcd.py' -o lib/st7735s_096_lcd.py
Source Code for
esp32-s2-lcd_basics.py
Source Code for module
lib/st7735s_096_lcd.py
# connect via rshell
(venv) $ rshell -p [SERIAL-PORT]
# copy module file into /pyboard/lib/
/your/current/path> cp lib/st7735s_096_lcd.py /pyboard/lib/
# copy script as main.py
/your/current/path> cp examples/display/esp32-s2-lcd_basics.py /pyboard/main.py
# start repl
/your/current/path> repl
Start with keys Control
+ d
. Stop the loop with keys Control
+ c
. To leave the REPL, press keys Control
+ x
.
Feel free to develop the driver class for this LCD further!