Status: Currently awaiting this issue to be fixed for arduino-esp32
- Adafruit ESP32-S2 Metro
- Adafruit MLX90640 55°
- MCUFriend TFT 480x320 - this is a generic part, my controller is
ILI9481
LCD Pin | ESP32-S2 Metro Pin |
---|---|
LCD_RD | A0 |
LCD_WR | A1 |
LCD_RS | A2 |
LCD_CS | A3 |
LCD_RST | A4 |
X | A5 |
LCD DataPin | ESP32-S2 Metro Pin |
---|---|
LCD_D7 | 12 |
LCD_D6 | 11 |
LCD_D5 | 10 |
LCD_D4 | 9 |
LCD_D3 | 8 |
LCD_D2 | 7 |
LCD Pin | ESP32-S2 Metro Pin |
---|---|
SD_SCK | 42 |
SD_DO | 21 |
SD_DI | 16 |
SD_SS | 15 |
LCD_D1 | 14 |
LCD_D0 | 13 |
-
Download [ESP-IDF]1 via git
git clone --recursive https://github.com/espressif/esp-idf.git
-
Install ESP-IDF
./install.ps1
-
Activate environment
./export.ps1
-
Create new project, set chip to
esp32s2
idf.py set-target esp32s2
-
Configure project
idf.py menuconfig
-
Must set
CONFIG_ESP_CONSOLE_USB_CDC=y
insdkconfig
(otherwise the [usb/serial port]2 will not work) -
Build
idf.py build
-
Upload
idf.py -p com4 flash
python (whereis miniterm.py) com7 115200
- Add a camera and overlay thermal/infradata on top of it