Loading...
Searching...
No Matches
board.h File Reference

Board definitions for ESP32-S3 WT32-SC01 Plus boards. More...

Detailed Description

Board definitions for ESP32-S3 WT32-SC01 Plus boards.

The board definitions in this file are for the Espressif ESP32-S3 WT32-SC01 Plus.

Any modifications required for specific applications can be overridden by application-specific board configuration.

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.
 

LCD display configuration

ESP32-S3 WT32-SC01 Plus uses a 3.5" LCD 480 x 320 pixel display with an ST7796UI as driver chip and MCU8080 8-bit parallel interface.

This configuration cannot be changed.

#define LCD_SCREEN_WIDTH   480
 LCD width.
 
#define LCD_SCREEN_HEIGHT   320
 LCD height.
 

Touch panel configuration

#define FT5X06_PARAM_I2C_DEV   I2C_DEV(0)
 I2C device.
 
#define FT5X06_PARAM_INT_PIN   GPIO7
 Interrupt pin.
 
#define FT5X06_PARAM_RST_PIN   GPIO4
 Reset pin.
 
#define FT5X06_PARAM_XMAX   LCD_SCREEN_WIDTH
 Max width.
 
#define FT5X06_PARAM_YMAX   LCD_SCREEN_HEIGHT
 Max height.
 
#define FT5X06_PARAM_TYPE   FT5X06_TYPE_FT6X36
 Device type.
 
#define FT5X06_PARAM_XYCONV   (FT5X06_SWAP_XY | FT5X06_MIRROR_Y)
 Swap XY, then mirror Y.
 

SD-Card interface configuration

SD-Card interface uses SPI_DEV(1) on this board.

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)
 
#define SDCARD_SPI_PARAM_CS   SPI0_CS0
 
#define SDCARD_SPI_PARAM_CLK   SPI0_SCK
 
#define SDCARD_SPI_PARAM_MOSI   SPI0_MOSI
 
#define SDCARD_SPI_PARAM_MISO   SPI0_MISO
 
#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF
 

Macro Definition Documentation

◆ BTN0_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the button GPIO.

Definition at line 53 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Default button GPIO mode definition.

Definition at line 47 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO0

Default button GPIO pin definition.

ESP32-S3 WT32-SC01 Plus boards have a BOOT button connected to GPIO0, which can be used as button during normal operation. Since the GPIO0 pin is pulled up, the button signal is inverted, i.e., pressing the button will give a low signal.

Definition at line 42 of file board.h.

◆ BUTTON0_PIN

#define BUTTON0_PIN   BTN0_PIN

Definition for compatibility with previous versions.

Definition at line 59 of file board.h.

◆ FT5X06_PARAM_I2C_DEV

#define FT5X06_PARAM_I2C_DEV   I2C_DEV(0)

I2C device.

Definition at line 120 of file board.h.

◆ FT5X06_PARAM_INT_PIN

#define FT5X06_PARAM_INT_PIN   GPIO7

Interrupt pin.

Definition at line 121 of file board.h.

◆ FT5X06_PARAM_RST_PIN

#define FT5X06_PARAM_RST_PIN   GPIO4

Reset pin.

Definition at line 122 of file board.h.

◆ FT5X06_PARAM_TYPE

#define FT5X06_PARAM_TYPE   FT5X06_TYPE_FT6X36

Device type.

Definition at line 125 of file board.h.

◆ FT5X06_PARAM_XMAX

#define FT5X06_PARAM_XMAX   LCD_SCREEN_WIDTH

Max width.

Definition at line 123 of file board.h.

◆ FT5X06_PARAM_XYCONV

#define FT5X06_PARAM_XYCONV   (FT5X06_SWAP_XY | FT5X06_MIRROR_Y)

Swap XY, then mirror Y.

Definition at line 126 of file board.h.

◆ FT5X06_PARAM_YMAX

#define FT5X06_PARAM_YMAX   LCD_SCREEN_HEIGHT

Max height.

Definition at line 124 of file board.h.

◆ LCD_SCREEN_HEIGHT

#define LCD_SCREEN_HEIGHT   320

LCD height.

Definition at line 73 of file board.h.

◆ LCD_SCREEN_WIDTH

#define LCD_SCREEN_WIDTH   480

LCD width.

Definition at line 72 of file board.h.

◆ SDCARD_SPI_PARAM_CLK

#define SDCARD_SPI_PARAM_CLK   SPI0_SCK

Definition at line 137 of file board.h.

◆ SDCARD_SPI_PARAM_CS

#define SDCARD_SPI_PARAM_CS   SPI0_CS0

Definition at line 136 of file board.h.

◆ SDCARD_SPI_PARAM_MISO

#define SDCARD_SPI_PARAM_MISO   SPI0_MISO

Definition at line 139 of file board.h.

◆ SDCARD_SPI_PARAM_MOSI

#define SDCARD_SPI_PARAM_MOSI   SPI0_MOSI

Definition at line 138 of file board.h.

◆ SDCARD_SPI_PARAM_POWER

#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF

Definition at line 140 of file board.h.

◆ SDCARD_SPI_PARAM_SPI

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)

Definition at line 135 of file board.h.