kopia lustrzana https://github.com/sh123/esp32_loraprs
47 wiersze
1.4 KiB
C
47 wiersze
1.4 KiB
C
#define LED_TOGGLE_PERIOD 1000
|
|
|
|
#define SERIAL_BAUD_RATE 115200
|
|
|
|
// change pinouts if not defined through native board LORA_* definitions
|
|
#ifndef LORA_RST
|
|
#pragma message("LoRa pin definitions are not found, redefining...")
|
|
#define LORA_RST 26
|
|
#define LORA_IRQ 14
|
|
#endif
|
|
|
|
#ifndef BUILTIN_LED
|
|
#pragma message("BUILDIN_LED is not found, defining as 2")
|
|
#define BUILTIN_LED 2
|
|
#endif
|
|
|
|
#define CFG_IS_CLIENT_MODE true
|
|
|
|
#define CFG_LORA_PIN_SS SS
|
|
#define CFG_LORA_PIN_RST LORA_RST
|
|
#define CFG_LORA_PIN_DIO0 LORA_IRQ
|
|
|
|
#define CFG_LORA_FREQ 433.775E6
|
|
#define CFG_LORA_BW 125e3
|
|
#define CFG_LORA_SF 12
|
|
#define CFG_LORA_CR 7
|
|
#define CFG_LORA_PWR 20
|
|
#define CFG_LORA_ENABLE_CRC true
|
|
|
|
#define CFG_BT_NAME "loraprs"
|
|
|
|
#define CFG_APRS_LOGIN "NOCALL-10"
|
|
#define CFG_APRS_PASS "12345"
|
|
#define CFG_APRS_FILTER "r/35.60/139.80/25"
|
|
#define CFG_APRS_RAW_BKN "NOCALL-10>APZMDM,WIDE1-1:!0000.00N/00000.00E#LoRA 433.775MHz/BW125/SF12/CR7/0x34"
|
|
|
|
#define CFG_WIFI_SSID "<ssid>"
|
|
#define CFG_WIFI_KEY "<key>"
|
|
|
|
#define CFG_FREQ_CORR false
|
|
#define CFG_PERSISTENT_APRS true
|
|
#define CFG_DIGIREPEAT false
|
|
#define CFG_RF_TO_IS true
|
|
#define CFG_IS_TO_RF false
|
|
#define CFG_BEACON false
|
|
#define CFG_KISS_EXTENSIONS false
|