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

Board definitions for the HiP Badge. More...

Detailed Description

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"
+ 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.

Macros

#define WS281X_PARAM_PIN   GPIO10
 WS281x LEDs are connected to GPIO10.
 
#define WS281X_PARAM_NUMOF   16
 There are 16 WS281x LEDs.
 

Button pin definitions

#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.
 

Macro Definition Documentation

◆ 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

#define BTN0_MODE   GPIO_IN

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

#define BTN0_PIN   GPIO2

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

#define BTN1_MODE   GPIO_IN

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

#define BTN1_PIN   GPIO8

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

#define BTN2_PIN   GPIO9

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.