Board definitions for the LILYGO TTGO T8 ESP32-S2 board. More...
Board definitions for the LILYGO TTGO T8 ESP32-S2 board.
The board definitions in this file are valid for the LILYGO TTGO T8 ESP32-S2 board.
Definition in file board.h.
#include <stdint.h>
#include "board_common.h"
Go to the source code of this file.
Button pin definitions | |
#define | BTN0_PIN GPIO0 |
Default button GPIO pin definition. More... | |
#define | BTN0_MODE GPIO_IN_PU |
Default button GPIO mode definition. More... | |
#define | BTN0_INT_FLANK GPIO_FALLING |
Default interrupt flank definition for the button GPIO. | |
#define | BUTTON0_PIN BTN0_PIN |
Definition for compatibility with previous versions. | |
SD-Card interface configuration | |
SD-Card interface uses SPI_DEV(1) on this board. | |
#define | SDCARD_SPI_PARAM_SPI SPI_DEV(1) |
#define | SDCARD_SPI_PARAM_CS SPI1_CS0 |
#define | SDCARD_SPI_PARAM_CLK SPI1_SCK |
#define | SDCARD_SPI_PARAM_MOSI SPI1_MOSI |
#define | SDCARD_SPI_PARAM_MISO SPI1_MISO |
#define | SDCARD_SPI_PARAM_POWER GPIO_UNDEF |
Backlight control | |
#define | BACKLIGHT_PIN GPIO33 |
Backlight pin. | |
#define | BACKLIGHT_ON gpio_set(BACKLIGHT_PIN) |
Turn backlight on. | |
#define | BACKLIGHT_OFF gpio_clear(BACKLIGHT_PIN) |
Turn backlight off. | |
#define BTN0_MODE GPIO_IN_PU |
#define BTN0_PIN GPIO0 |
Default button GPIO pin definition.
LILYGO TTGO T8 ESP32-S2 boards have a BOOT button connected to GPIO0, which can be used as button during normal operation. Since the GPIO9 pin is pulled up, the button signal is inverted, i.e., pressing the button will give a low signal.