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

Board definitions for Wemos S2 mini board. More...

Detailed Description

Board definitions for Wemos S2 mini board.

The board definitions in this file is valid for the Wemos S2 mini board.

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.

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

#define LED0_PIN   GPIO15
 LED is connected to GPIO15.
 
#define LED0_ACTIVE   1
 LED is high active.
 

Macro Definition Documentation

◆ BTN0_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the button GPIO.

Definition at line 49 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Default button GPIO mode definition.

Definition at line 43 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO0

Default button GPIO pin definition.

Wemos S2 mini 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 38 of file board.h.

◆ BUTTON0_PIN

#define BUTTON0_PIN   BTN0_PIN

Definition for compatibility with previous versions.

Definition at line 55 of file board.h.

◆ LED0_ACTIVE

#define LED0_ACTIVE   1

LED is high active.

Definition at line 65 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO15

LED is connected to GPIO15.

Definition at line 64 of file board.h.