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

Board definitions for ESP32-S3-DevKit boards. More...

Detailed Description

Board definitions for ESP32-S3-DevKit boards.

The board definitions in this file are valid for Espressif ESP32-S3-DevKitx boards that use one of the following modules:

  • ESP32-S3-MINI-1x module (ESP32-S3-DevKitM-1 board)
  • ESP32-S3-WROOM-1x module (ESP32-S3-DevKitC-1 board)
  • ESP32-S3-WROOM-2x module (ESP32-S3-DevKitC-1 board)

where x stands for the module version with and without U (external antenna connector).

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

ESP32-S3-DevKit boards have a SK68XXMINI-HS smart RGB LED on-board connected to either

  • GPIO48 (ESP32-S3-DevKitC-1 revision 1.0 and all ESP32-S3-DevKitM-1 boards) or
  • GPIO38 (ESP32-S3-DevKitC-1 revision 1.1).

The WS281x driver module ws281x can be used for control.

#define WS281X_PARAM_PIN   (GPIO48)
 GPIO pin connected to the data pin.
 
#define WS281X_PARAM_NUMOF   (1U)
 Number of LEDs chained.
 

Macro Definition Documentation

◆ BTN0_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the button GPIO.

Definition at line 61 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Default button GPIO mode definition.

Definition at line 55 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO0

Default button GPIO pin definition.

ESP32-S3-DevKit 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 50 of file board.h.

◆ BUTTON0_PIN

#define BUTTON0_PIN   BTN0_PIN

Definition for compatibility with previous versions.

Definition at line 67 of file board.h.

◆ WS281X_PARAM_NUMOF

#define WS281X_PARAM_NUMOF   (1U)

Number of LEDs chained.

Definition at line 87 of file board.h.

◆ WS281X_PARAM_PIN

#define WS281X_PARAM_PIN   (GPIO48)

GPIO pin connected to the data pin.

Definition at line 84 of file board.h.