Board definitions for the HiP Badge.
More...
Board definitions for the HiP Badge.
- Author
- Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com
Definition in file board.h.
#include <stdint.h>
#include "board_common.h"
Go to the source code of this file.
|
#define | BTN0_PIN GPIO2 |
| Tact A GPIO pin definition.
|
|
#define | BTN0_MODE GPIO_IN |
| button GPIO mode definition
|
|
#define | BTN0_INT_FLANK GPIO_FALLING |
| Default interrupt flank definition for the button GPIO.
|
|
#define | BTN1_PIN GPIO8 |
| Tact B GPIO pin definition.
|
|
#define | BTN1_MODE GPIO_IN |
| Default button GPIO mode definition.
|
|
#define | BTN1_INT_FLANK GPIO_FALLING |
| Default interrupt flank definition for the button GPIO.
|
|
#define | BTN2_PIN GPIO9 |
| BOOT button GPIO pin definition.
|
|
#define | BTN2_MODE GPIO_IN_PU |
| Default button GPIO mode definition.
|
|
#define | BTN2_INT_FLANK GPIO_FALLING |
| Default interrupt flank definition for the button GPIO.
|
|
◆ BTN0_INT_FLANK
#define BTN0_INT_FLANK GPIO_FALLING |
Default interrupt flank definition for the button GPIO.
Definition at line 45 of file board.h.
◆ BTN0_MODE
button GPIO mode definition
Since the GPIO of the button is pulled up with an external resistor, the mode for the GPIO pin has to be GPIO_IN.
Definition at line 39 of file board.h.
◆ BTN0_PIN
Tact A GPIO pin definition.
Definition at line 31 of file board.h.
◆ BTN1_INT_FLANK
#define BTN1_INT_FLANK GPIO_FALLING |
Default interrupt flank definition for the button GPIO.
Definition at line 65 of file board.h.
◆ BTN1_MODE
Default button GPIO mode definition.
Since the GPIO of the button is pulled up with an external resistor, the mode for the GPIO pin has to be GPIO_IN.
Definition at line 59 of file board.h.
◆ BTN1_PIN
Tact B GPIO pin definition.
Definition at line 51 of file board.h.
◆ BTN2_INT_FLANK
#define BTN2_INT_FLANK GPIO_FALLING |
Default interrupt flank definition for the button GPIO.
Definition at line 87 of file board.h.
◆ BTN2_MODE
#define BTN2_MODE GPIO_IN_PU |
Default button GPIO mode definition.
Definition at line 81 of file board.h.
◆ BTN2_PIN
BOOT button GPIO pin definition.
The HiP-Badge has a BOOT button connected to GPIO9, which can be used as button during normal operation. Since the GPIO9 pin is pulled up, the button signal is inverted, i.e., pressing the button will give a low signal.
Definition at line 76 of file board.h.
◆ WS281X_PARAM_NUMOF
#define WS281X_PARAM_NUMOF 16 |
There are 16 WS281x LEDs.
Definition at line 102 of file board.h.
◆ WS281X_PARAM_PIN
#define WS281X_PARAM_PIN GPIO10 |
WS281x LEDs are connected to GPIO10.
Definition at line 95 of file board.h.