ESP32-PaxCounter/shared/hal/ttgotdongledisplays3.h

27 lines
978 B
C
Raw Permalink Normal View History

2022-10-31 16:04:09 +01:00
// clang-format off
// upload_speed 1500000
// board esp32-s3-devkitc-1
2022-10-31 16:04:09 +01:00
2022-11-04 18:51:37 +01:00
// for pinouts see https://github.com/Xinyuan-LilyGO/T-Dongle-S3
2022-10-31 16:04:09 +01:00
2022-11-04 18:51:37 +01:00
#ifndef _TTGOTDONGLEDISPLAYS3_H
#define _TTGOTDONGLEDISPLAYS3_H
2022-10-31 16:04:09 +01:00
#include <stdint.h>
#define HAS_LED NOT_A_PIN
2022-11-04 18:51:37 +01:00
#define RGB_LED_COUNT 1
#define HAS_RGB_LED FastLED.addLeds<APA102, 40, 39, BGR>(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, }
2022-10-31 16:04:09 +01:00
#define HAS_DISPLAY 3 // TFT-LCD
2022-11-12 16:49:22 +01:00
#define TFT_TYPE DISPLAY_T_DONGLE_S3
2022-10-31 16:04:09 +01:00
#define MY_DISPLAY_FLIP 1 // use if display is rotated
#define MY_DISPLAY_WIDTH 80
#define MY_DISPLAY_HEIGHT 160
#endif