From 96688e761729d730709306c1cb051d236b83cbb3 Mon Sep 17 00:00:00 2001
From: matthias-bs <83612361+matthias-bs@users.noreply.github.com>
Date: Thu, 25 Apr 2024 06:20:26 +0000
Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20matthias?=
=?UTF-8?q?-bs/BresserWeatherSensorReceiver@4b19519aa1ac30daf6b9cd71a07b50?=
=?UTF-8?q?f255f97358=20=F0=9F=9A=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
_weather_sensor_cfg_8h_source.html | 1101 ++++++++++++++--------------
1 file changed, 551 insertions(+), 550 deletions(-)
diff --git a/_weather_sensor_cfg_8h_source.html b/_weather_sensor_cfg_8h_source.html
index 6902e899..aac39ce2 100644
--- a/_weather_sensor_cfg_8h_source.html
+++ b/_weather_sensor_cfg_8h_source.html
@@ -145,561 +145,562 @@
-
-
-
-
-
- 67 #if !defined(WEATHER_SENSOR_CFG_H)
- 68 #define WEATHER_SENSOR_CFG_H
-
-
-
-
-
-
-
-
-
- 78 #define SENSOR_IDS_EXC { 0x792882A2 }
-
-
-
- 82 #define SENSOR_IDS_INC { }
-
-
-
- 86 #define WIND_DATA_FLOATINGPOINT
- 87 #define WIND_DATA_FIXEDPOINT
-
-
-
- 91 #define BRESSER_5_IN_1
- 92 #define BRESSER_6_IN_1
- 93 #define BRESSER_7_IN_1
- 94 #define BRESSER_LIGHTNING
- 95 #define BRESSER_LEAKAGE
-
+
+
+
+
+
+
+ 68 #if !defined(WEATHER_SENSOR_CFG_H)
+ 69 #define WEATHER_SENSOR_CFG_H
+
+
+
+
+
+
+
+
+
+ 79 #define SENSOR_IDS_EXC { 0x792882A2 }
+
+
+
+ 83 #define SENSOR_IDS_INC { }
+
+
+
+ 87 #define WIND_DATA_FLOATINGPOINT
+ 88 #define WIND_DATA_FIXEDPOINT
+
+
+
+ 92 #define BRESSER_5_IN_1
+ 93 #define BRESSER_6_IN_1
+ 94 #define BRESSER_7_IN_1
+ 95 #define BRESSER_LIGHTNING
+ 96 #define BRESSER_LEAKAGE
-
-
-
-
- 102 #if !defined(INSIDE_UNITTEST)
-
-
-
-
-
- 108 #define RAINGAUGE_USE_PREFS
- 109 #define LIGHTNING_USE_PREFS
-
-
- 112 #define RAINGAUGE_USE_PREFS
- 113 #define LIGHTNING_USE_PREFS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 182 #if defined(ARDUINO_TTGO_LoRa32_V1)
- 183 #pragma message("ARDUINO_TTGO_LoRa32_V1 defined; using on-board transceiver")
-
-
- 186 #elif defined(ARDUINO_TTGO_LoRa32_V2)
- 187 #pragma message("ARDUINO_TTGO_LoRa32_V2 defined; using on-board transceiver")
- 188 #pragma message("Wiring required for LMIC: DIO1 to GPIO33")
-
-
- 191 #elif defined(ARDUINO_TTGO_LoRa32_v21new)
- 192 #pragma message("ARDUINO_TTGO_LoRa32_V21new defined; using on-board transceiver")
-
-
- 195 #elif defined(ARDUINO_heltec_wireless_stick)
- 196 #pragma message("ARDUINO_heltec_wireless_stick defined; using on-board transceiver")
- 197 #pragma message("Radio transceiver chip has to be configured manually: V2 -> USE_SX1276 / V3 -> USE_SX1262")
-
-
-
- 201 #elif defined(ARDUINO_heltec_wireless_stick_v2)
- 202 #pragma message("ARDUINO_heltec_wireless_stick_v2 defined; using on-board transceiver")
-
-
- 205 #elif defined(ARDUINO_heltec_wireless_stick_v3)
- 206 #pragma message("ARDUINO_heltec_wireless_stick_v3 defined; using on-board transceiver")
-
-
- 209 #elif defined(ARDUINO_heltec_wifi_lora_32_V2)
- 210 #pragma message("ARDUINO_heltec_wifi_lora_32_V2 defined; using on-board transceiver")
-
-
- 213 #elif defined(ARDUINO_heltec_wifi_32_lora_V3)
- 214 #pragma message("ARDUINO_heltec_wifi_32_lora_V3 defined; using on-board transceiver")
-
-
- 217 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
- 218 #pragma message("ARDUINO_ADAFRUIT_FEATHER_ESP32S2 defined; assuming RFM95W FeatherWing will be used")
-
-
- 221 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32_V2)
- 222 #pragma message("ARDUINO_ADAFRUIT_FEATHER_ESP32_V2 defined; assuming RFM95W FeatherWing will be used")
-
- 224 #pragma message("Required wiring: A to RST, B to DIO1, D to DIO0, E to CS")
-
- 226 #elif defined(ARDUINO_FEATHER_ESP32)
- 227 #pragma message("ARDUINO_FEATHER_ESP32 defined; assuming RFM95W FeatherWing will be used")
-
- 229 #pragma message("Required wiring: A to RST, B to DIO1, D to DIO0, E to CS")
-
- 231 #elif defined(ARDUINO_M5STACK_CORE2) || defined(ARDUINO_M5STACK_Core2)
-
-
- 234 #pragma message("ARDUINO_M5STACK_CORE2 defined; assuming M5Stack Module LoRa868 will be used")
-
- 236 #pragma message("Wiring required for LMIC: DIO1 to GPIO35")
-
- 238 #elif defined(ARDUINO_ESP32S3_POWERFEATHER)
- 239 #pragma message("ARDUINO_ESP32S3_POWERFEATHER defined; assuming RFM95W FeatherWing will be used")
-
- 241 #pragma message("Required wiring: A to RST, B to DIO1, D to DIO0, E to CS")
-
- 243 #elif defined(ARDUINO_AVR_FEATHER32U4)
- 244 #pragma message("ARDUINO_AVR_FEATHER32U4 defined; assuming this is the Adafruit Feather 32u4 RFM95 LoRa Radio")
-
-
- 247 #elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
- 248 #pragma message("ARDUINO_ADAFRUIT_FEATHER_RP2040 defined; assuming RFM95W FeatherWing will be used")
-
- 250 #pragma message("Required wiring: A to RST, B to DIO1, D to DIO0, E to CS")
-
- 252 #elif defined(ARDUINO_ESP32_DEV) || defined(ARDUINO_DFROBOT_FIREBEETLE_ESP32)
-
- 254 #define FIREBEETLE_ESP32_COVER_LORA
-
- 256 #if defined(FIREBEETLE_ESP32_COVER_LORA)
- 257 #pragma message("FIREBEETLE_ESP32_COVER_LORA defined; assuming this is a FireBeetle ESP32 with FireBeetle Cover LoRa")
-
- 259 #pragma message("Required wiring: D2 to RESET, D3 to DIO0, D4 to CS, D5 to DIO1")
-
- 261 #elif defined(LORAWAN_NODE)
- 262 #pragma message("LORAWAN_NODE defined; assuming this is the LoRaWAN_Node board (DFRobot Firebeetle32 + Adafruit RFM95W LoRa Radio)")
-
-
-
- 266 #pragma message("ARDUINO_ESP32_DEV defined; if you use one of those boards, select either LORAWAN_NODE or FIREBEETLE_ESP32_COVER_LORA manually!")
-
-
-
-
+
+
+
+
+
+ 103 #if !defined(INSIDE_UNITTEST)
+
+
+
+
+
+ 109 #define RAINGAUGE_USE_PREFS
+ 110 #define LIGHTNING_USE_PREFS
+
+
+ 113 #define RAINGAUGE_USE_PREFS
+ 114 #define LIGHTNING_USE_PREFS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 183 #if defined(ARDUINO_TTGO_LoRa32_V1)
+ 184 #pragma message("ARDUINO_TTGO_LoRa32_V1 defined; using on-board transceiver")
+
+
+ 187 #elif defined(ARDUINO_TTGO_LoRa32_V2)
+ 188 #pragma message("ARDUINO_TTGO_LoRa32_V2 defined; using on-board transceiver")
+ 189 #pragma message("Wiring required for LMIC: DIO1 to GPIO33")
+
+
+ 192 #elif defined(ARDUINO_TTGO_LoRa32_v21new)
+ 193 #pragma message("ARDUINO_TTGO_LoRa32_V21new defined; using on-board transceiver")
+
+
+ 196 #elif defined(ARDUINO_heltec_wireless_stick)
+ 197 #pragma message("ARDUINO_heltec_wireless_stick defined; using on-board transceiver")
+ 198 #pragma message("Radio transceiver chip has to be configured manually: V2 -> USE_SX1276 / V3 -> USE_SX1262")
+
+
+
+ 202 #elif defined(ARDUINO_heltec_wireless_stick_v2)
+ 203 #pragma message("ARDUINO_heltec_wireless_stick_v2 defined; using on-board transceiver")
+
+
+ 206 #elif defined(ARDUINO_heltec_wireless_stick_v3)
+ 207 #pragma message("ARDUINO_heltec_wireless_stick_v3 defined; using on-board transceiver")
+
+
+ 210 #elif defined(ARDUINO_heltec_wifi_lora_32_V2)
+ 211 #pragma message("ARDUINO_heltec_wifi_lora_32_V2 defined; using on-board transceiver")
+
+
+ 214 #elif defined(ARDUINO_heltec_wifi_32_lora_V3) || defined(ARDUINO_heltec_wifi_lora_32_V3)
+ 215 #pragma message("ARDUINO_heltec_wifi_32_lora_V3 (or similar) defined; using on-board transceiver")
+
+
+ 218 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
+ 219 #pragma message("ARDUINO_ADAFRUIT_FEATHER_ESP32S2 defined; assuming RFM95W FeatherWing will be used")
+
+
+ 222 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32_V2)
+ 223 #pragma message("ARDUINO_ADAFRUIT_FEATHER_ESP32_V2 defined; assuming RFM95W FeatherWing will be used")
+
+ 225 #pragma message("Required wiring: A to RST, B to DIO1, D to DIO0, E to CS")
+
+ 227 #elif defined(ARDUINO_FEATHER_ESP32)
+ 228 #pragma message("ARDUINO_FEATHER_ESP32 defined; assuming RFM95W FeatherWing will be used")
+
+ 230 #pragma message("Required wiring: A to RST, B to DIO1, D to DIO0, E to CS")
+
+ 232 #elif defined(ARDUINO_M5STACK_CORE2) || defined(ARDUINO_M5STACK_Core2)
+
+
+ 235 #pragma message("ARDUINO_M5STACK_CORE2 defined; assuming M5Stack Module LoRa868 will be used")
+
+ 237 #pragma message("Wiring required for LMIC: DIO1 to GPIO35")
+
+ 239 #elif defined(ARDUINO_ESP32S3_POWERFEATHER)
+ 240 #pragma message("ARDUINO_ESP32S3_POWERFEATHER defined; assuming RFM95W FeatherWing will be used")
+
+ 242 #pragma message("Required wiring: A to RST, B to DIO1, D to DIO0, E to CS")
+
+ 244 #elif defined(ARDUINO_AVR_FEATHER32U4)
+ 245 #pragma message("ARDUINO_AVR_FEATHER32U4 defined; assuming this is the Adafruit Feather 32u4 RFM95 LoRa Radio")
+
+
+ 248 #elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
+ 249 #pragma message("ARDUINO_ADAFRUIT_FEATHER_RP2040 defined; assuming RFM95W FeatherWing will be used")
+
+ 251 #pragma message("Required wiring: A to RST, B to DIO1, D to DIO0, E to CS")
+
+ 253 #elif defined(ARDUINO_ESP32_DEV) || defined(ARDUINO_DFROBOT_FIREBEETLE_ESP32)
+
+ 255 #define FIREBEETLE_ESP32_COVER_LORA
+
+ 257 #if defined(FIREBEETLE_ESP32_COVER_LORA)
+ 258 #pragma message("FIREBEETLE_ESP32_COVER_LORA defined; assuming this is a FireBeetle ESP32 with FireBeetle Cover LoRa")
+
+ 260 #pragma message("Required wiring: D2 to RESET, D3 to DIO0, D4 to CS, D5 to DIO1")
+
+ 262 #elif defined(LORAWAN_NODE)
+ 263 #pragma message("LORAWAN_NODE defined; assuming this is the LoRaWAN_Node board (DFRobot Firebeetle32 + Adafruit RFM95W LoRa Radio)")
+
+
+
+ 267 #pragma message("ARDUINO_ESP32_DEV defined; if you use one of those boards, select either LORAWAN_NODE or FIREBEETLE_ESP32_COVER_LORA manually!")
+
+
+
-
-
-
-
- 276 #if ( !defined(USE_CC1101) && !defined(USE_SX1276) && !defined(USE_SX1262) )
-
-
-
-
-
+
+
+
+
+
+ 277 #if ( !defined(USE_CC1101) && !defined(USE_SX1276) && !defined(USE_SX1262) )
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 302 #if defined(ESP8266) || defined(ARDUINO_ARCH_RP2040)
- 303 #define ARDUHAL_LOG_LEVEL_NONE 0
- 304 #define ARDUHAL_LOG_LEVEL_ERROR 1
- 305 #define ARDUHAL_LOG_LEVEL_WARN 2
- 306 #define ARDUHAL_LOG_LEVEL_INFO 3
- 307 #define ARDUHAL_LOG_LEVEL_DEBUG 4
- 308 #define ARDUHAL_LOG_LEVEL_VERBOSE 5
-
- 310 #if defined(ARDUINO_ARCH_RP2040) && defined(DEBUG_RP2040_PORT)
- 311 #define DEBUG_PORT DEBUG_RP2040_PORT
- 312 #elif defined(DEBUG_ESP_PORT)
- 313 #define DEBUG_PORT DEBUG_ESP_PORT
-
-
-
- 317 #define CORE_DEBUG_LEVEL ARDUHAL_LOG_LEVEL_INFO
-
- 319 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_NONE
- 320 #define log_e(...) { DEBUG_PORT.printf("%s(), l.%d: ",__func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
-
- 322 #define log_e(...) {}
-
- 324 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_ERROR
- 325 #define log_w(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
-
- 327 #define log_w(...) {}
-
- 329 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_WARN
- 330 #define log_i(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
-
- 332 #define log_i(...) {}
-
- 334 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_INFO
- 335 #define log_d(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
-
- 337 #define log_d(...) {}
-
- 339 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_DEBUG
- 340 #define log_v(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
-
- 342 #define log_v(...) {}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 303 #if defined(ESP8266) || defined(ARDUINO_ARCH_RP2040)
+ 304 #define ARDUHAL_LOG_LEVEL_NONE 0
+ 305 #define ARDUHAL_LOG_LEVEL_ERROR 1
+ 306 #define ARDUHAL_LOG_LEVEL_WARN 2
+ 307 #define ARDUHAL_LOG_LEVEL_INFO 3
+ 308 #define ARDUHAL_LOG_LEVEL_DEBUG 4
+ 309 #define ARDUHAL_LOG_LEVEL_VERBOSE 5
+
+ 311 #if defined(ARDUINO_ARCH_RP2040) && defined(DEBUG_RP2040_PORT)
+ 312 #define DEBUG_PORT DEBUG_RP2040_PORT
+ 313 #elif defined(DEBUG_ESP_PORT)
+ 314 #define DEBUG_PORT DEBUG_ESP_PORT
+
+
+
+ 318 #define CORE_DEBUG_LEVEL ARDUHAL_LOG_LEVEL_INFO
+
+ 320 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_NONE
+ 321 #define log_e(...) { DEBUG_PORT.printf("%s(), l.%d: ",__func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
+
+ 323 #define log_e(...) {}
+
+ 325 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_ERROR
+ 326 #define log_w(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
+
+ 328 #define log_w(...) {}
+
+ 330 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_WARN
+ 331 #define log_i(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
+
+ 333 #define log_i(...) {}
+
+ 335 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_INFO
+ 336 #define log_d(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
+
+ 338 #define log_d(...) {}
+
+ 340 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_DEBUG
+ 341 #define log_v(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
+
+ 343 #define log_v(...) {}
+
+
+
-
-
-
- 351 #if defined(ARDUINO_ARCH_AVR)
- 352 #define ARDUHAL_LOG_LEVEL_NONE 0
- 353 #define ARDUHAL_LOG_LEVEL_ERROR 1
- 354 #define ARDUHAL_LOG_LEVEL_WARN 2
- 355 #define ARDUHAL_LOG_LEVEL_INFO 3
- 356 #define ARDUHAL_LOG_LEVEL_DEBUG 4
- 357 #define ARDUHAL_LOG_LEVEL_VERBOSE 5
-
-
- 360 #define CORE_DEBUG_LEVEL ARDUHAL_LOG_LEVEL_INFO
-
- 362 #if defined(DEBUG_ESP_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_NONE
- 363 #define log_e(...) { printf(__VA_ARGS__); println(); }
-
- 365 #define log_e(...) {}
-
- 367 #if defined(DEBUG_ESP_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_ERROR
- 368 #define log_w(...) { printf(__VA_ARGS__); println(); }
-
- 370 #define log_w(...) {}
-
- 372 #if defined(DEBUG_ESP_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_WARN
- 373 #define log_i(...) { printf(__VA_ARGS__); println(); }
-
- 375 #define log_i(...) {}
-
- 377 #if defined(DEBUG_ESP_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_INFO
- 378 #define log_d(...) { printf(__VA_ARGS__); println(); }
-
- 380 #define log_d(...) {}
-
- 382 #if defined(DEBUG_ESP_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_DEBUG
- 383 #define log_v(...) { printf(__VA_ARGS__); println(); }
-
- 385 #define log_v(...) {}
-
-
-
- 389 #if ( (defined(USE_CC1101) && defined(USE_SX1276)) || \
- 390 (defined(USE_SX1276) && defined(USE_SX1262)) || \
- 391 (defined(USE_SX1262) && defined(USE_CC1101)) )
- 392 #error "Either USE_CC1101 OR USE_SX1276 OR USE_SX1262 must be defined!"
-
-
- 395 #if defined(USE_CC1101)
- 396 #define RECEIVER_CHIP "[CC1101]"
- 397 #elif defined(USE_SX1276)
- 398 #define RECEIVER_CHIP "[SX1276]"
- 399 #elif defined(USE_SX1262)
- 400 #define RECEIVER_CHIP "[SX1262]"
-
- 402 #error "Either USE_CC1101, USE_SX1276 or USE_SX1262 must be defined!"
-
-
+
+
+
+
+ 352 #if defined(ARDUINO_ARCH_AVR)
+ 353 #define ARDUHAL_LOG_LEVEL_NONE 0
+ 354 #define ARDUHAL_LOG_LEVEL_ERROR 1
+ 355 #define ARDUHAL_LOG_LEVEL_WARN 2
+ 356 #define ARDUHAL_LOG_LEVEL_INFO 3
+ 357 #define ARDUHAL_LOG_LEVEL_DEBUG 4
+ 358 #define ARDUHAL_LOG_LEVEL_VERBOSE 5
+
+
+ 361 #define CORE_DEBUG_LEVEL ARDUHAL_LOG_LEVEL_INFO
+
+ 363 #if defined(DEBUG_ESP_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_NONE
+ 364 #define log_e(...) { printf(__VA_ARGS__); println(); }
+
+ 366 #define log_e(...) {}
+
+ 368 #if defined(DEBUG_ESP_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_ERROR
+ 369 #define log_w(...) { printf(__VA_ARGS__); println(); }
+
+ 371 #define log_w(...) {}
+
+ 373 #if defined(DEBUG_ESP_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_WARN
+ 374 #define log_i(...) { printf(__VA_ARGS__); println(); }
+
+ 376 #define log_i(...) {}
+
+ 378 #if defined(DEBUG_ESP_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_INFO
+ 379 #define log_d(...) { printf(__VA_ARGS__); println(); }
+
+ 381 #define log_d(...) {}
+
+ 383 #if defined(DEBUG_ESP_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_DEBUG
+ 384 #define log_v(...) { printf(__VA_ARGS__); println(); }
+
+ 386 #define log_v(...) {}
+
+
+
+ 390 #if ( (defined(USE_CC1101) && defined(USE_SX1276)) || \
+ 391 (defined(USE_SX1276) && defined(USE_SX1262)) || \
+ 392 (defined(USE_SX1262) && defined(USE_CC1101)) )
+ 393 #error "Either USE_CC1101 OR USE_SX1276 OR USE_SX1262 must be defined!"
+
+
+ 396 #if defined(USE_CC1101)
+ 397 #define RECEIVER_CHIP "[CC1101]"
+ 398 #elif defined(USE_SX1276)
+ 399 #define RECEIVER_CHIP "[SX1276]"
+ 400 #elif defined(USE_SX1262)
+ 401 #define RECEIVER_CHIP "[SX1262]"
+
+ 403 #error "Either USE_CC1101, USE_SX1276 or USE_SX1262 must be defined!"
+
-
-
-
-
-
- 411 #if defined(LORAWAN_NODE)
-
- 413 #define PIN_RECEIVER_CS 14
-
-
- 416 #define PIN_RECEIVER_IRQ 4
-
-
- 419 #define PIN_RECEIVER_GPIO 16
-
-
- 422 #define PIN_RECEIVER_RST 12
-
- 424 #elif defined(FIREBEETLE_ESP32_COVER_LORA)
- 425 #define PIN_RECEIVER_CS 27
-
-
- 428 #define PIN_RECEIVER_IRQ 26
-
-
- 431 #define PIN_RECEIVER_GPIO 9
-
-
- 434 #define PIN_RECEIVER_RST 25
-
- 436 #elif defined(ARDUINO_TTGO_LoRa32_V1) || defined(ARDUINO_TTGO_LoRa32_V2)
-
- 438 #define PIN_RECEIVER_CS LORA_CS
-
-
- 441 #define PIN_RECEIVER_IRQ LORA_IRQ
-
-
-
- 445 #define PIN_RECEIVER_GPIO 33
-
-
- 448 #define PIN_RECEIVER_RST LORA_RST
-
- 450 #elif defined(ARDUINO_TTGO_LoRa32_v21new)
-
-
- 453 #define PIN_RECEIVER_CS LORA_CS
-
-
- 456 #define PIN_RECEIVER_IRQ LORA_IRQ
-
-
- 459 #define PIN_RECEIVER_GPIO LORA_D1
-
-
- 462 #define PIN_RECEIVER_RST LORA_RST
-
- 464 #elif defined(ARDUINO_heltec_wireless_stick) || defined(ARDUINO_heltec_wifi_lora_32_V2)
-
- 466 #define PIN_RECEIVER_CS SS
-
-
- 469 #define PIN_RECEIVER_IRQ DIO0
-
-
- 472 #define PIN_RECEIVER_GPIO DIO1
-
-
- 475 #define PIN_RECEIVER_RST RST_LoRa
-
- 477 #elif defined(ARDUINO_heltec_wifi_32_lora_V3)
-
- 479 #define PIN_RECEIVER_CS SS
-
-
- 482 #define PIN_RECEIVER_IRQ DIO0
-
-
- 485 #define PIN_RECEIVER_GPIO BUSY_LoRa
-
-
- 488 #define PIN_RECEIVER_RST RST_LoRa
-
- 490 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
-
- 492 #define PIN_RECEIVER_CS 6
-
-
- 495 #define PIN_RECEIVER_IRQ 5
-
-
- 498 #define PIN_RECEIVER_GPIO 11
-
-
- 501 #define PIN_RECEIVER_RST 9
-
- 503 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32_V2)
-
- 505 #define PIN_RECEIVER_CS 14
-
-
- 508 #define PIN_RECEIVER_IRQ 32
-
-
- 511 #define PIN_RECEIVER_GPIO 33
-
-
- 514 #define PIN_RECEIVER_RST 27
-
- 516 #elif defined(ARDUINO_FEATHER_ESP32)
-
- 518 #define PIN_RECEIVER_CS 14
-
-
- 521 #define PIN_RECEIVER_IRQ 32
-
-
- 524 #define PIN_RECEIVER_GPIO 33
-
-
- 527 #define PIN_RECEIVER_RST 27
-
- 529 #elif defined(ARDUINO_M5STACK_CORE2) || defined(ARDUINO_M5STACK_Core2)
-
-
-
- 533 #define PIN_RECEIVER_CS 33
-
-
- 536 #define PIN_RECEIVER_IRQ 36
-
-
- 539 #define PIN_RECEIVER_GPIO 35
-
-
- 542 #define PIN_RECEIVER_RST 26
-
- 544 #elif defined(ARDUINO_ESP32S3_POWERFEATHER)
-
- 546 #define PIN_RECEIVER_CS 15
-
-
- 549 #define PIN_RECEIVER_IRQ 16
-
-
- 552 #define PIN_RECEIVER_GPIO 18
-
-
- 555 #define PIN_RECEIVER_RST 45
-
-
-
- 559 #define PIN_RECEIVER_CS 27
-
-
- 562 #define PIN_RECEIVER_IRQ 21
-
-
- 565 #define PIN_RECEIVER_GPIO 33
-
-
- 568 #define PIN_RECEIVER_RST 32
-
- 570 #elif defined(ESP8266)
-
- 572 #define PIN_RECEIVER_CS 15
-
-
- 575 #define PIN_RECEIVER_IRQ 4
-
-
- 578 #define PIN_RECEIVER_GPIO 5
-
-
- 581 #define PIN_RECEIVER_RST 2
-
- 583 #elif defined(ARDUINO_AVR_FEATHER32U4)
-
- 585 #define PIN_RECEIVER_CS 8
-
-
- 588 #define PIN_RECEIVER_IRQ 7
-
-
- 591 #define PIN_RECEIVER_GPIO 99
-
-
- 594 #define PIN_RECEIVER_RST 4
-
- 596 #elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
-
- 598 #define PIN_RECEIVER_CS 7
-
-
- 601 #define PIN_RECEIVER_IRQ 8
-
-
- 604 #define PIN_RECEIVER_GPIO 10
-
-
- 607 #define PIN_RECEIVER_RST 11
-
-
-
- 611 #define STR_HELPER(x) #x
- 612 #define STR(x) STR_HELPER(x)
- 613 #pragma message("Receiver chip: " RECEIVER_CHIP)
- 614 #pragma message("Pin config: RST->" STR(PIN_RECEIVER_RST) ", CS->" STR(PIN_RECEIVER_CS) ", GD0/G0/IRQ->" STR(PIN_RECEIVER_IRQ) ", GDO2/G1/GPIO->" STR(PIN_RECEIVER_GPIO) )
-
-
+
+
+
+
+
+
+ 412 #if defined(LORAWAN_NODE)
+
+ 414 #define PIN_RECEIVER_CS 14
+
+
+ 417 #define PIN_RECEIVER_IRQ 4
+
+
+ 420 #define PIN_RECEIVER_GPIO 16
+
+
+ 423 #define PIN_RECEIVER_RST 12
+
+ 425 #elif defined(FIREBEETLE_ESP32_COVER_LORA)
+ 426 #define PIN_RECEIVER_CS 27
+
+
+ 429 #define PIN_RECEIVER_IRQ 26
+
+
+ 432 #define PIN_RECEIVER_GPIO 9
+
+
+ 435 #define PIN_RECEIVER_RST 25
+
+ 437 #elif defined(ARDUINO_TTGO_LoRa32_V1) || defined(ARDUINO_TTGO_LoRa32_V2)
+
+ 439 #define PIN_RECEIVER_CS LORA_CS
+
+
+ 442 #define PIN_RECEIVER_IRQ LORA_IRQ
+
+
+
+ 446 #define PIN_RECEIVER_GPIO 33
+
+
+ 449 #define PIN_RECEIVER_RST LORA_RST
+
+ 451 #elif defined(ARDUINO_TTGO_LoRa32_v21new)
+
+
+ 454 #define PIN_RECEIVER_CS LORA_CS
+
+
+ 457 #define PIN_RECEIVER_IRQ LORA_IRQ
+
+
+ 460 #define PIN_RECEIVER_GPIO LORA_D1
+
+
+ 463 #define PIN_RECEIVER_RST LORA_RST
+
+ 465 #elif defined(ARDUINO_heltec_wireless_stick) || defined(ARDUINO_heltec_wifi_lora_32_V2)
+
+ 467 #define PIN_RECEIVER_CS SS
+
+
+ 470 #define PIN_RECEIVER_IRQ DIO0
+
+
+ 473 #define PIN_RECEIVER_GPIO DIO1
+
+
+ 476 #define PIN_RECEIVER_RST RST_LoRa
+
+ 478 #elif defined(ARDUINO_heltec_wifi_32_lora_V3) || defined(ARDUINO_heltec_wifi_lora_32_V3)
+
+ 480 #define PIN_RECEIVER_CS SS
+
+
+ 483 #define PIN_RECEIVER_IRQ DIO0
+
+
+ 486 #define PIN_RECEIVER_GPIO BUSY_LoRa
+
+
+ 489 #define PIN_RECEIVER_RST RST_LoRa
+
+ 491 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
+
+ 493 #define PIN_RECEIVER_CS 6
+
+
+ 496 #define PIN_RECEIVER_IRQ 5
+
+
+ 499 #define PIN_RECEIVER_GPIO 11
+
+
+ 502 #define PIN_RECEIVER_RST 9
+
+ 504 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32_V2)
+
+ 506 #define PIN_RECEIVER_CS 14
+
+
+ 509 #define PIN_RECEIVER_IRQ 32
+
+
+ 512 #define PIN_RECEIVER_GPIO 33
+
+
+ 515 #define PIN_RECEIVER_RST 27
+
+ 517 #elif defined(ARDUINO_FEATHER_ESP32)
+
+ 519 #define PIN_RECEIVER_CS 14
+
+
+ 522 #define PIN_RECEIVER_IRQ 32
+
+
+ 525 #define PIN_RECEIVER_GPIO 33
+
+
+ 528 #define PIN_RECEIVER_RST 27
+
+ 530 #elif defined(ARDUINO_M5STACK_CORE2) || defined(ARDUINO_M5STACK_Core2)
+
+
+
+ 534 #define PIN_RECEIVER_CS 33
+
+
+ 537 #define PIN_RECEIVER_IRQ 36
+
+
+ 540 #define PIN_RECEIVER_GPIO 35
+
+
+ 543 #define PIN_RECEIVER_RST 26
+
+ 545 #elif defined(ARDUINO_ESP32S3_POWERFEATHER)
+
+ 547 #define PIN_RECEIVER_CS 15
+
+
+ 550 #define PIN_RECEIVER_IRQ 16
+
+
+ 553 #define PIN_RECEIVER_GPIO 18
+
+
+ 556 #define PIN_RECEIVER_RST 45
+
+
+
+ 560 #define PIN_RECEIVER_CS 27
+
+
+ 563 #define PIN_RECEIVER_IRQ 21
+
+
+ 566 #define PIN_RECEIVER_GPIO 33
+
+
+ 569 #define PIN_RECEIVER_RST 32
+
+ 571 #elif defined(ESP8266)
+
+ 573 #define PIN_RECEIVER_CS 15
+
+
+ 576 #define PIN_RECEIVER_IRQ 4
+
+
+ 579 #define PIN_RECEIVER_GPIO 5
+
+
+ 582 #define PIN_RECEIVER_RST 2
+
+ 584 #elif defined(ARDUINO_AVR_FEATHER32U4)
+
+ 586 #define PIN_RECEIVER_CS 8
+
+
+ 589 #define PIN_RECEIVER_IRQ 7
+
+
+ 592 #define PIN_RECEIVER_GPIO 99
+
+
+ 595 #define PIN_RECEIVER_RST 4
+
+ 597 #elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
+
+ 599 #define PIN_RECEIVER_CS 7
+
+
+ 602 #define PIN_RECEIVER_IRQ 8
+
+
+ 605 #define PIN_RECEIVER_GPIO 10
+
+
+ 608 #define PIN_RECEIVER_RST 11
+
+
+
+ 612 #define STR_HELPER(x) #x
+ 613 #define STR(x) STR_HELPER(x)
+ 614 #pragma message("Receiver chip: " RECEIVER_CHIP)
+ 615 #pragma message("Pin config: RST->" STR(PIN_RECEIVER_RST) ", CS->" STR(PIN_RECEIVER_CS) ", GD0/G0/IRQ->" STR(PIN_RECEIVER_IRQ) ", GDO2/G1/GPIO->" STR(PIN_RECEIVER_GPIO) )
+
+