Configuration of CPU peripherals for the Waveshare ESP32-S3 1.28-inch round display board (Touch version) More...
Configuration of CPU peripherals for the Waveshare ESP32-S3 1.28-inch round display board (Touch version)
Definition in file periph_conf.h.
#include <stdint.h>#include "periph_conf_common.h"
Include dependency graph for periph_conf.h:Go to the source code of this file.
ADC channel configuration | |
| #define | ADC_GPIOS { GPIO1 } |
| Declaration of GPIOs that can be used as ADC channels. | |
SPI configuration | |
SPI_DEV(0) is used for the LCD display
| |
| #define | SPI0_CTRL SPI2_HOST |
| SPI2 (FSPI) is configured as SPI_DEV(0) | |
| #define | SPI0_SCK GPIO10 |
| LCD SCLK. | |
| #define | SPI0_MOSI GPIO11 |
| LCD SDA. | |
| #define | SPI0_MISO GPIO12 |
| LCD SDO. | |
| #define | SPI0_CS0 GPIO9 |
| LCD CS. | |
I2C configuration | |
I2C_DEV(0) is used for the IMU and the touch controller.
| |
| #define | I2C0_SPEED I2C_SPEED_FAST |
| I2C bus speed of I2C_DEV(0) | |
| #define | I2C0_SCL GPIO7 |
| SCL signal of I2C_DEV(0) | |
| #define | I2C0_SDA GPIO6 |
| SDA signal of I2C_DEV(0) | |
UART configuration | |
ESP32-S3 provides 3 UART interfaces at maximum: UART_DEV(0) uses fixed standard configuration. | |
| #define | UART0_TXD GPIO43 |
| direct I/O pin for UART_DEV(0) TxD, can't be changed | |
| #define | UART0_RXD GPIO44 |
| direct I/O pin for UART_DEV(0) RxD, can't be changed | |
| #define ADC_GPIOS { GPIO1 } |
Declaration of GPIOs that can be used as ADC channels.
GPIO1 can be used for Battery voltage monitoring as ADC_LINE(0): V_BAT = 3.3 / (1 << 12) * 3 * ADC_Value
Definition at line 38 of file periph_conf.h.
| #define I2C0_SCL GPIO7 |
SCL signal of I2C_DEV(0)
Definition at line 87 of file periph_conf.h.
| #define I2C0_SDA GPIO6 |
SDA signal of I2C_DEV(0)
Definition at line 90 of file periph_conf.h.
| #define I2C0_SPEED I2C_SPEED_FAST |
I2C bus speed of I2C_DEV(0)
Definition at line 84 of file periph_conf.h.
| #define SPI0_CS0 GPIO9 |
LCD CS.
Definition at line 68 of file periph_conf.h.
| #define SPI0_CTRL SPI2_HOST |
SPI2 (FSPI) is configured as SPI_DEV(0)
Definition at line 56 of file periph_conf.h.
| #define SPI0_MISO GPIO12 |
LCD SDO.
Definition at line 65 of file periph_conf.h.
| #define SPI0_MOSI GPIO11 |
LCD SDA.
Definition at line 62 of file periph_conf.h.
| #define SPI0_SCK GPIO10 |
LCD SCLK.
Definition at line 59 of file periph_conf.h.
| #define UART0_RXD GPIO44 |
direct I/O pin for UART_DEV(0) RxD, can't be changed
Definition at line 105 of file periph_conf.h.
| #define UART0_TXD GPIO43 |
direct I/O pin for UART_DEV(0) TxD, can't be changed
Definition at line 104 of file periph_conf.h.