2022-08-08 21:11:19 +00:00
|
|
|
// #define RADIOLIB_CUSTOM_ARDUINO 1
|
|
|
|
// #define RADIOLIB_TONE_UNSUPPORTED 1
|
|
|
|
// #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 1
|
|
|
|
|
|
|
|
#define ARDUINO_ARCH_AVR
|
|
|
|
|
|
|
|
#define USE_SH1106 1
|
|
|
|
|
2023-07-08 16:32:36 +00:00
|
|
|
// default I2C pins:
|
|
|
|
// SDA = 4
|
|
|
|
// SCL = 5
|
2022-08-08 21:11:19 +00:00
|
|
|
|
2023-09-26 10:45:34 +00:00
|
|
|
// Recommended pins for SerialModule:
|
|
|
|
// txd = 8
|
|
|
|
// rxd = 9
|
|
|
|
|
2023-07-29 12:19:58 +00:00
|
|
|
#define EXT_NOTIFY_OUT 22
|
2022-08-08 21:11:19 +00:00
|
|
|
#define BUTTON_PIN 17
|
|
|
|
|
|
|
|
#define BATTERY_PIN 26
|
|
|
|
// ratio of voltage divider = 3.0 (R17=200k, R18=100k)
|
|
|
|
#define ADC_MULTIPLIER 3.1 // 3.0 + a bit for being optimistic
|
|
|
|
|
|
|
|
#define USE_SX1262
|
|
|
|
|
|
|
|
#undef RF95_SCK
|
|
|
|
#undef RF95_MISO
|
|
|
|
#undef RF95_MOSI
|
|
|
|
#undef RF95_NSS
|
|
|
|
|
|
|
|
#define RF95_SCK 10
|
|
|
|
#define RF95_MISO 12
|
|
|
|
#define RF95_MOSI 11
|
|
|
|
#define RF95_NSS 3
|
|
|
|
|
|
|
|
#define LORA_DIO0 RADIOLIB_NC
|
|
|
|
#define LORA_RESET 15
|
|
|
|
#define LORA_DIO1 20
|
|
|
|
#define LORA_DIO2 2
|
|
|
|
#define LORA_DIO3 RADIOLIB_NC
|
|
|
|
|
|
|
|
#ifdef USE_SX1262
|
|
|
|
#define SX126X_CS RF95_NSS
|
|
|
|
#define SX126X_DIO1 LORA_DIO1
|
|
|
|
#define SX126X_BUSY LORA_DIO2
|
|
|
|
#define SX126X_RESET LORA_RESET
|
2023-09-27 21:01:40 +00:00
|
|
|
#define SX126X_DIO2_AS_RF_SWITCH
|
|
|
|
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
|
|
|
|
#endif
|