mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
9e57a8f299
Changed those values to be prevent compiling issues with PlatformIO and also as it is good practice not to use names which easily could collide with other libs. Also removed a duplicate line from keywords.txt
32 lines
749 B
C
32 lines
749 B
C
// FARM DATA RELAY SYSTEM
|
|
//
|
|
// Sensor Configuration
|
|
// (In the future this file will be known as 'sensor_config.h')
|
|
//
|
|
|
|
//#include <fdrs_globals.h> //Uncomment if you install the globals file
|
|
|
|
#define READING_ID 1 //Unique ID for this sensor
|
|
#define GTWY_MAC 0x01 //Address of the nearest gateway
|
|
|
|
#define USE_ESPNOW
|
|
//#define USE_LORA
|
|
#define DEEP_SLEEP
|
|
//#define POWER_CTRL 14
|
|
#define FDRS_DEBUG
|
|
|
|
//SPI Configuration -- Needed only on Boards with multiple SPI interfaces like the ESP32
|
|
#define SPI_SCK 5
|
|
#define SPI_MISO 19
|
|
#define SPI_MOSI 27
|
|
|
|
//LoRa Configuration
|
|
#define LORA_SS 18
|
|
#define LORA_RST 14
|
|
#define LORA_DIO0 26
|
|
//433E6 for Asia
|
|
//866E6 for Europe
|
|
//915E6 for North America
|
|
#define LORA_BAND 915E6
|
|
#define LORA_SF 7
|