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

Board definitions for the Adafruit Metro ESP32-S3 board. More...

Detailed Description

Board definitions for the Adafruit Metro ESP32-S3 board.

The board definitions in this file are valid for the Adafruit Metro ESP32-S3 board with 16 MB Flash and 8 MB PSRAM.

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.
 

LED (on-board) configuration

The Adafruit Metro ESP32-S3 board has a red LED labeled L that is connected to GPIO13 (Arduino pin D13) and one 24-bit RGB-LED (NeoPixel) connected to GPIO46.

#define LED0_PIN   GPIO13
 Red LED L
 
#define LED0_ACTIVE   (1)
 Red LED is high active.
 
#define WS281X_PARAM_PIN   (GPIO46)
 GPIO pin connected to the NeoPixel.
 
#define WS281X_PARAM_NUMOF   (1U)
 Number of LEDs chained.
 

SD-Card interface configuration

The microSD card slot is connected to SPI_DEV(0), which is also routed to the ICSP header.

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)
 SPI device.
 
#define SDCARD_SPI_PARAM_CS   SPI0_CS0
 SD_CS (GPIO45)
 
#define SDCARD_SPI_PARAM_CLK   SPI0_SCK
 SCK (GPIO39)
 
#define SDCARD_SPI_PARAM_MOSI   SPI0_MOSI
 MOSI (GPIO42)
 
#define SDCARD_SPI_PARAM_MISO   SPI0_MISO
 MISO (GPIO21)
 
#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF
 not used
 

Macro Definition Documentation

◆ BTN0_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the button GPIO.

Definition at line 49 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Default button GPIO mode definition.

Definition at line 43 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO0

Default button GPIO pin definition.

The Adafruit Metro ESP32-S3 board has a BOOT button connected to GPIO0, which can be used as button during normal operation. The GPIO0 pin has a pull-up resistor and the button is low-active.

Definition at line 38 of file board.h.

◆ BUTTON0_PIN

#define BUTTON0_PIN   BTN0_PIN

Definition for compatibility with previous versions.

Definition at line 55 of file board.h.

◆ LED0_ACTIVE

#define LED0_ACTIVE   (1)

Red LED is high active.

Definition at line 68 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO13

Red LED L

Definition at line 67 of file board.h.

◆ SDCARD_SPI_PARAM_CLK

#define SDCARD_SPI_PARAM_CLK   SPI0_SCK

SCK (GPIO39)

Definition at line 88 of file board.h.

◆ SDCARD_SPI_PARAM_CS

#define SDCARD_SPI_PARAM_CS   SPI0_CS0

SD_CS (GPIO45)

Definition at line 87 of file board.h.

◆ SDCARD_SPI_PARAM_MISO

#define SDCARD_SPI_PARAM_MISO   SPI0_MISO

MISO (GPIO21)

Definition at line 90 of file board.h.

◆ SDCARD_SPI_PARAM_MOSI

#define SDCARD_SPI_PARAM_MOSI   SPI0_MOSI

MOSI (GPIO42)

Definition at line 89 of file board.h.

◆ SDCARD_SPI_PARAM_POWER

#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF

not used

Definition at line 91 of file board.h.

◆ SDCARD_SPI_PARAM_SPI

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)

SPI device.

Definition at line 86 of file board.h.

◆ WS281X_PARAM_NUMOF

#define WS281X_PARAM_NUMOF   (1U)

Number of LEDs chained.

Definition at line 74 of file board.h.

◆ WS281X_PARAM_PIN

#define WS281X_PARAM_PIN   (GPIO46)

GPIO pin connected to the NeoPixel.

Definition at line 71 of file board.h.