From db63c14638dde1d6cfcc974b02efdb7afbf8c3ac Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Fri, 4 Nov 2022 18:51:37 +0100 Subject: [PATCH] update ttgotdongledisplays3.h --- src/hal/ttgotdongledisplays3.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/hal/ttgotdongledisplays3.h b/src/hal/ttgotdongledisplays3.h index e198275c..98def89a 100644 --- a/src/hal/ttgotdongledisplays3.h +++ b/src/hal/ttgotdongledisplays3.h @@ -2,21 +2,24 @@ // upload_speed 1500000 // board esp32-s3-devkitc-1 -// see https://github.com/Xinyuan-LilyGO/T-Dongle-S3 +// for pinouts see https://github.com/Xinyuan-LilyGO/T-Dongle-S3 -#ifndef _TTGOTDONGLES3_H -#define _TTGOTDONGLES3_H +#ifndef _TTGOTDONGLEDISPLAYS3_H +#define _TTGOTDONGLEDISPLAYS3_H #include #define HAS_LED NOT_A_PIN -#define HAS_BUTTON 0 - -#define HAS_SDCARD 2 // this board has a SD MMC card-reader/writer -#define SDCARD_SLOTWIDTH 4 // 4-line interface +#define RGB_LED_COUNT 1 +#define HAS_RGB_LED FastLED.addLeds(leds, RGB_LED_COUNT) +#define FASTLED_INTERNAL +#define HAS_BUTTON 0 // dongle button is on GPIO0 +#define HAS_SDCARD 2 // dongle has a SD MMC card-reader/writer +#define SDCARD_SLOTWIDTH 4 // dongle has 4 line interface +#define SDCARD_SLOTCONFIG { .clk = GPIO_NUM_12, .cmd = GPIO_NUM_16, .d0 = GPIO_NUM_14, .d1 = GPIO_NUM_17, .d2 = GPIO_NUM_21, .d3 = GPIO_NUM_18, .cd = SDMMC_SLOT_NO_CD, .wp = SDMMC_SLOT_NO_WP, .width = 4, .flags = 0, } #define HAS_DISPLAY 2 // TFT-LCD -#define TFT_TYPE DISPLAY_T_DISPLAY_S3 +#define TFT_TYPE DISPLAY_T_DISPLAY_S3 // may currently not work, we are awaiting a PR for display lib #define MY_DISPLAY_FLIP 1 // use if display is rotated #define MY_DISPLAY_WIDTH 80 #define MY_DISPLAY_HEIGHT 160