LilyGo-T-Display-S2 icon indicating copy to clipboard operation
LilyGo-T-Display-S2 copied to clipboard

using with Arduino ide

Open mohir opened this issue 3 years ago • 2 comments

Please show how to use with Arduino ide, which display library to use etc....

mohir avatar Nov 08 '21 12:11 mohir

Hi @mohir,

I managed to use the Arduino IDE 2.0 beta...

Instruction

  1. Install Arduino IDE 2.0 beta

  2. follow this documentation to install the espressif sdk: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html

  3. then choose this board ESP32S2 Dev Module and an upload port

image

  1. important: select a lower upload speed because the Serial to USB-C port is limited: image

Maybe someone add this instruction to a readme?

Regarding the display ...

If you figured out how to program how to program the display, please let me know. What I figured out yet is to activate the backlight:

#define PIN_NUM_BCKL 33

pinMode(PIN_NUM_BCKL, OUTPUT);
digitalWrite(PIN_NUM_BCKL, HIGH);

C example: https://github.dev/Xinyuan-LilyGO/LilyGo-T-Display-S2/blob/master/main/app_main.c

vanvuongngo avatar Nov 11 '21 10:11 vanvuongngo

I got the display up and running by using the LovyanGFX library. Credits to Eric ... here is his example: https://github.com/0015/ESP32-S2-Projects/tree/main/Brute-force_Keyboard/Brute-force_Keyboard_0.1

vanvuongngo avatar Nov 11 '21 23:11 vanvuongngo