Board definitions for the Adafruit Metro ESP32-S2 board. More...
Board definitions for the Adafruit Metro ESP32-S2 board.
The board definitions in this file are valid for the Adafruit Metro ESP32-S2 board.
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 red LED is connected to GPIO42, which is also available as Arduino pin D13. Furthermore, the board has a NeoPixel smart RGB-LED connected to GPIO45. The WS281x driver module | |
| #define | LED0_PIN GPIO42 |
| red LED is connected to GPIO42 | |
| #define | LED0_ACTIVE 1 |
| LED is high active. | |
| #define | WS281X_PARAM_PIN (GPIO45) |
| GPIO pin connected to the data pin. | |
| #define | WS281X_PARAM_NUMOF (1U) |
| Number of LEDs chained. | |
| #define BTN0_INT_FLANK GPIO_FALLING |
| #define BTN0_MODE GPIO_IN_PU |
| #define BTN0_PIN GPIO0 |
| #define BUTTON0_PIN BTN0_PIN |