Board definitions for ESP32-H2-DevKitM-1 boards. More...
Board definitions for ESP32-H2-DevKitM-1 boards.
The board definitions in this file are valid for the Espressif ESP32-H2-DevKitM-1 board the ESP32-H2-MINI-1x module.
Since the number of GPIOs and their possible uses on the ESP32-H2 are quite limited, these board definitions can also be used for most other ESP32-H2 boards. Any modifications required for specific applications can be overridden by application-specific board configuration.
Definition in file board.h.
#include <stdint.h>
#include "board_common.h"
Go to the source code of this file.
Button pin definitions | |
#define | BTN0_PIN GPIO9 |
Default button GPIO pin definition. More... | |
#define | BTN0_MODE GPIO_IN_PU |
Default button GPIO mode definition. More... | |
#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-H2-DevKitM-1 boards have a SK68XXMINI-HS smart RGB-LED connected to GPIO8 on-board. The WS281x driver module | |
#define | WS281X_PARAM_PIN (GPIO8) |
GPIO pin connected to the data pin. | |
#define | WS281X_PARAM_NUMOF (1U) |
Number of LEDs chained. | |
#define BTN0_MODE GPIO_IN_PU |
#define BTN0_PIN GPIO9 |
Default button GPIO pin definition.
ESP32-H2-DevKitM-1 boards have a BOOT button connected to GPIO9, which can be used as button during normal operation. Since the button connects GPIO9 pin to GND, the button signal is inverted, i.e., pressing the button will give a low signal.