Project moved => ESP32-TUX
Check the updated version with lots of features, including support for the new version WT32-SC01 Plus
https://github.com/sukesh-ak/ESP32-TUX
- Board : WT32-SC01 from Wireless Tag (Seeed Studio also carries the same)
- Graphics & Touch Driver : LovyanGFX
- UI/Widgets : LVGL8.x
- Framework : ESP-IDF (Arduino sample here)
(Don't forget to runidf.py menuconfig
before building the sample)
- ESP32 WROVER-B
- 3.5" 480x320 ST7796S TFT Display
- Capacitive touchscreen FT6336U
- Default 4MB Flash & 8MB PSRAM
- Two external expansion female pin headers with same pin-out (mirrored)
- 2 x 3.3v LDO, 1 for the board and 1 for the external expansion
- Separate Battery/External power option with voltage range 5v-9v (5)
- USB-C for power and programming
- No SD Card storage option
- 16MB Flash version available but only through Alibaba (didn't know when I ordered)
- Pin headers are 2mm pitch which is not the common standard (2.54mm is common).
- Mounting holes in the wrong place so you cannot use it (fixed in newer revisions)
- TFT (ST7796)
- TFT_RST=22
- TFT_SCLK=14
- TFT_DC=21
- TFT_CS=15
- TFT_MOSI=13
- TFT_MISO=-1
- TFT_BCKL=23
- Touch (FT6336U)
- TOUCH_SDA=18
- TOUCH_SCL=19
- I2C_TOUCH_ADDRESS=0x38
Replace the content of main.cpp with the following to test quickly
/*
Simple Touch Drawing sample for WT32-SC01
*/
#include <stdio.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include "sdkconfig.h"
#define LGFX_WT32_SC01
#define LGFX_USE_V1 // set to use new version of library
#include <LovyanGFX.hpp> // main library
#include <LGFX_AUTODETECT.hpp>
static LGFX lcd; // declare display variable
extern "C"
{
void setup(void)
{
lcd.init();
// Setting display to landscape
if (lcd.width() < lcd.height()) lcd.setRotation(lcd.getRotation() ^ 1);
// Variables for touch x,y
static int32_t x,y;
while(1)
{
if (lcd.getTouch(&x, &y)) {
lcd.fillRect(x-2, y-2, 5, 5, TFT_RED);
lcd.setCursor(380,0);
lcd.printf("Touch:(%03d,%03d)", x,y);
}
}
}