2018-11-25 16:35:36 +01:00
|
|
|
// clang-format off
|
2019-10-04 14:47:58 +02:00
|
|
|
// upload_speed 921600
|
2019-06-30 17:48:24 +02:00
|
|
|
// board esp32dev
|
2018-11-25 16:35:36 +01:00
|
|
|
|
2018-10-21 19:00:20 +02:00
|
|
|
#ifndef _EBOX_H
|
|
|
|
#define _EBOX_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2018-08-04 18:58:20 +02:00
|
|
|
// Hardware related definitions for ebox ESP32-bit with external connected RFM95 LoRa
|
2018-07-28 01:46:43 +02:00
|
|
|
|
2018-08-11 19:12:04 +02:00
|
|
|
#define HAS_LORA 1 // comment out if device shall not send data via LoRa
|
2018-07-28 01:46:43 +02:00
|
|
|
#define CFG_sx1276_radio 1
|
|
|
|
|
2018-10-21 19:00:20 +02:00
|
|
|
#define HAS_LED (23) // blue LED on board
|
|
|
|
#define HAS_BUTTON (0) // button "PROG" on board
|
2018-08-05 23:07:13 +02:00
|
|
|
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
2018-07-28 01:46:43 +02:00
|
|
|
|
2018-10-21 22:24:45 +02:00
|
|
|
// Pins for LORA chip SPI interface, reset line and interrupt lines
|
2018-10-21 22:16:29 +02:00
|
|
|
#define LORA_SCK (5)
|
|
|
|
#define LORA_CS (18)
|
|
|
|
#define LORA_MISO (19)
|
|
|
|
#define LORA_MOSI (27)
|
|
|
|
#define LORA_RST (14)
|
2018-11-20 15:02:37 +01:00
|
|
|
#define LORA_IRQ (26)
|
2018-10-21 22:16:29 +02:00
|
|
|
#define LORA_IO1 (33)
|
|
|
|
#define LORA_IO2 LMIC_UNUSED_PIN
|
2018-07-28 01:46:43 +02:00
|
|
|
|
2018-10-21 19:00:20 +02:00
|
|
|
#endif
|