29 lines
751 B
C
29 lines
751 B
C
// clang-format off
|
|
// upload_speed 921600
|
|
// board esp32dev
|
|
|
|
#ifndef _EBOX_H
|
|
#define _EBOX_H
|
|
|
|
#include <stdint.h>
|
|
|
|
// Hardware related definitions for ebox ESP32-bit with external connected RFM95 LoRa
|
|
|
|
#define HAS_LORA 1 // comment out if device shall not send data via LoRa
|
|
#define CFG_sx1276_radio 1
|
|
|
|
#define HAS_LED (23) // blue LED on board
|
|
#define HAS_BUTTON (0) // button "PROG" on board
|
|
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
|
|
|
// Pins for LORA chip SPI interface, reset line and interrupt lines
|
|
#define LORA_SCK (5)
|
|
#define LORA_CS (18)
|
|
#define LORA_MISO (19)
|
|
#define LORA_MOSI (27)
|
|
#define LORA_RST (14)
|
|
#define LORA_IRQ (26)
|
|
#define LORA_IO1 (33)
|
|
#define LORA_IO2 LMIC_UNUSED_PIN
|
|
|
|
#endif |