Loading...
Searching...
No Matches

Board definitions for the LILYGO TTGO T8 ESP32-S2 board. More...

Detailed Description

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.

Note
Most definitions can be overridden by an application-specific board configuration if necessary.
Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file board.h.

#include <stdint.h>
#include "board_common.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Button pin definitions

#define BTN0_PIN   GPIO0
 Default button GPIO pin definition.
 
#define BTN0_MODE   GPIO_IN_PU
 Default button GPIO mode definition.
 
#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.
 

Macro Definition Documentation

◆ BACKLIGHT_OFF

#define BACKLIGHT_OFF   gpio_clear(BACKLIGHT_PIN)

Turn backlight off.

Definition at line 114 of file board.h.

◆ BACKLIGHT_ON

#define BACKLIGHT_ON   gpio_set(BACKLIGHT_PIN)

Turn backlight on.

Definition at line 113 of file board.h.

◆ BACKLIGHT_PIN

#define BACKLIGHT_PIN   GPIO33

Backlight pin.

Definition at line 112 of file board.h.

◆ BTN0_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the button GPIO.

Definition at line 58 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Default button GPIO mode definition.

Since the GPIO of the button is pulled up with an external resistor, the mode for the GPIO pin has to be GPIO_IN.

Definition at line 52 of file board.h.

◆ BTN0_PIN

#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.

Definition at line 44 of file board.h.

◆ BUTTON0_PIN

#define BUTTON0_PIN   BTN0_PIN

Definition for compatibility with previous versions.

Definition at line 64 of file board.h.

◆ SDCARD_SPI_PARAM_CLK

#define SDCARD_SPI_PARAM_CLK   SPI1_SCK

Definition at line 77 of file board.h.

◆ SDCARD_SPI_PARAM_CS

#define SDCARD_SPI_PARAM_CS   SPI1_CS0

Definition at line 76 of file board.h.

◆ SDCARD_SPI_PARAM_MISO

#define SDCARD_SPI_PARAM_MISO   SPI1_MISO

Definition at line 79 of file board.h.

◆ SDCARD_SPI_PARAM_MOSI

#define SDCARD_SPI_PARAM_MOSI   SPI1_MOSI

Definition at line 78 of file board.h.

◆ SDCARD_SPI_PARAM_POWER

#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF

Definition at line 80 of file board.h.

◆ SDCARD_SPI_PARAM_SPI

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(1)

Definition at line 75 of file board.h.