Loading...
Searching...
No Matches

Board specific definitions for Heltec WiFi LoRa 32 V2 board. More...

Detailed Description

Board specific definitions for Heltec WiFi LoRa 32 V2 board.

Heltec WiFi LoRa 32 V2 is an ESP32 development board with 8 MB Flash that uses the EPS32 chip directly. It integrates a SemTech SX1276 or SX1278 for LoRaWAN communication in the 433 MHz or the 868/915 MHz band, respectively. Additionally, it has an OLED display connected via I2C on board.

For detailed information about the configuration of ESP32 boards, see section Common Peripherals.

Note
Most definitions can be overridden by an application-specific board configuration.
Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

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
 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   GPIO25
 
#define LED0_ACTIVE   (1)
 LED is high active.
 

SX127X

SX127X configuration.

#define SX127X_PARAM_SPI   (SPI_DEV(0))
 
#define SX127X_PARAM_SPI_NSS   GPIO18
 
#define SX127X_PARAM_RESET   GPIO14
 
#define SX127X_PARAM_DIO0   GPIO26
 
#define SX127X_PARAM_DIO1   GPIO_UNDEF /* GPIO35 has no pulldown, leads to init error */
 
#define SX127X_PARAM_DIO2   GPIO_UNDEF /* GPIO34 has no pulldown, leads to init error */
 
#define SX127X_PARAM_DIO3   GPIO_UNDEF
 
#define SX127X_PARAM_DIO_MULTI   GPIO_UNDEF
 

Macro Definition Documentation

◆ BTN0_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the button GPIO.

Definition at line 62 of file board.h.

◆ BTN0_MODE

#define BTN0_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 56 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO0

Default button GPIO pin definition.

Generic ESP32 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 48 of file board.h.

◆ BUTTON0_PIN

#define BUTTON0_PIN   BTN0_PIN

Definition for compatibility with previous versions.

Definition at line 68 of file board.h.

◆ LED0_ACTIVE

#define LED0_ACTIVE   (1)

LED is high active.

Definition at line 78 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO25

Definition at line 77 of file board.h.

◆ SX127X_PARAM_DIO0

#define SX127X_PARAM_DIO0   GPIO26

Definition at line 90 of file board.h.

◆ SX127X_PARAM_DIO1

#define SX127X_PARAM_DIO1   GPIO_UNDEF /* GPIO35 has no pulldown, leads to init error */

Definition at line 91 of file board.h.

◆ SX127X_PARAM_DIO2

#define SX127X_PARAM_DIO2   GPIO_UNDEF /* GPIO34 has no pulldown, leads to init error */

Definition at line 92 of file board.h.

◆ SX127X_PARAM_DIO3

#define SX127X_PARAM_DIO3   GPIO_UNDEF

Definition at line 93 of file board.h.

◆ SX127X_PARAM_DIO_MULTI

#define SX127X_PARAM_DIO_MULTI   GPIO_UNDEF

Definition at line 94 of file board.h.

◆ SX127X_PARAM_RESET

#define SX127X_PARAM_RESET   GPIO14

Definition at line 89 of file board.h.

◆ SX127X_PARAM_SPI

#define SX127X_PARAM_SPI   (SPI_DEV(0))

Definition at line 87 of file board.h.

◆ SX127X_PARAM_SPI_NSS

#define SX127X_PARAM_SPI_NSS   GPIO18

Definition at line 88 of file board.h.