diff --git a/_weather_sensor_cfg_8h_source.html b/_weather_sensor_cfg_8h_source.html index 50712a2d..80a6e470 100644 --- a/_weather_sensor_cfg_8h_source.html +++ b/_weather_sensor_cfg_8h_source.html @@ -399,186 +399,187 @@
313 #define WIND_DATA_FIXEDPOINT
314 
315 // Select appropriate sensor message format(s)
-
316 #define BRESSER_5_IN_1
-
317 #define BRESSER_6_IN_1
-
318 #define BRESSER_7_IN_1
-
319 #define BRESSER_LIGHTNING
-
320 #define BRESSER_LEAKAGE
-
321 
-
322 #if ( !defined(BRESSER_5_IN_1) && !defined(BRESSER_6_IN_1) && !defined(BRESSER_7_IN_1) )
-
323  #error "Either BRESSER_5_IN_1 and/or BRESSER_6_IN_1 and/or BRESSER_7_IN_1 must be defined!"
-
324 #endif
-
325 
-
326 #if ( defined(USE_CC1101) && defined(USE_SX1276) )
-
327  #error "Either USE_CC1101 OR USE_SX1276 must be defined!"
-
328 #endif
-
329 
-
330 #if defined(USE_CC1101)
-
331  #define RECEIVER_CHIP "[CC1101]"
-
332 #elif defined(USE_SX1276)
-
333  #define RECEIVER_CHIP "[SX1276]"
-
334 #else
-
335  #error "Either USE_CC1101 or USE_SX1276 must be defined!"
-
336 #endif
-
337 
+
316 // Comment out unused decoders to save operation time/power
+
317 #define BRESSER_5_IN_1
+
318 #define BRESSER_6_IN_1
+
319 #define BRESSER_7_IN_1
+
320 #define BRESSER_LIGHTNING
+
321 #define BRESSER_LEAKAGE
+
322 
+
323 #if ( !defined(BRESSER_5_IN_1) && !defined(BRESSER_6_IN_1) && !defined(BRESSER_7_IN_1) )
+
324  #error "Either BRESSER_5_IN_1 and/or BRESSER_6_IN_1 and/or BRESSER_7_IN_1 must be defined!"
+
325 #endif
+
326 
+
327 #if ( defined(USE_CC1101) && defined(USE_SX1276) )
+
328  #error "Either USE_CC1101 OR USE_SX1276 must be defined!"
+
329 #endif
+
330 
+
331 #if defined(USE_CC1101)
+
332  #define RECEIVER_CHIP "[CC1101]"
+
333 #elif defined(USE_SX1276)
+
334  #define RECEIVER_CHIP "[SX1276]"
+
335 #else
+
336  #error "Either USE_CC1101 or USE_SX1276 must be defined!"
+
337 #endif
338 
-
339 // Arduino default SPI pins
-
340 //
-
341 // Board SCK MOSI MISO
-
342 // ESP8266 D5 D7 D6
-
343 // ESP32 D18 D23 D19
-
344 #if defined(LORAWAN_NODE)
-
345  // Use pinning for LoRaWAN_Node (https://github.com/matthias-bs/LoRaWAN_Node)
-
346  #define PIN_RECEIVER_CS 14
-
347 
-
348  // CC1101: GDO0 / RFM95W/SX127x: G0
-
349  #define PIN_RECEIVER_IRQ 4
-
350 
-
351  // CC1101: GDO2 / RFM95W/SX127x: G1
-
352  #define PIN_RECEIVER_GPIO 16
-
353 
-
354  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
355  #define PIN_RECEIVER_RST 12
-
356 
-
357 #elif defined(FIREBEETLE_ESP32_COVER_LORA)
-
358  #define PIN_RECEIVER_CS 27 // D4
-
359 
-
360  // CC1101: GDO0 / RFM95W/SX127x: G0
-
361  #define PIN_RECEIVER_IRQ 26 // D3
-
362 
-
363  // CC1101: GDO2 / RFM95W/SX127x: G1
-
364  #define PIN_RECEIVER_GPIO 9 // D5
-
365 
-
366  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
367  #define PIN_RECEIVER_RST 25 // D2
-
368 
-
369 #elif defined(ARDUINO_TTGO_LoRa32_V1) || defined(ARDUINO_TTGO_LoRa32_V2)
-
370  // Use pinning for LILIGO TTGO LoRa32-OLED
-
371  #define PIN_RECEIVER_CS LORA_CS
-
372 
-
373  // CC1101: GDO0 / RFM95W/SX127x: G0
-
374  #define PIN_RECEIVER_IRQ LORA_IRQ
-
375 
-
376  // CC1101: GDO2 / RFM95W/SX127x: G1
-
377  // n.c. on v1/v2?, LORA_D1 on v21
-
378  #define PIN_RECEIVER_GPIO 33
-
379 
-
380  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
381  #define PIN_RECEIVER_RST LORA_RST
-
382 
-
383 #elif defined(ARDUINO_TTGO_LoRa32_v21new)
-
384  // Use pinning for LILIGO TTGO LoRa32-OLED V2.1 (1.6.1)
-
385  // Same pinout for Heltec Wireless Stick
-
386  #define PIN_RECEIVER_CS LORA_CS
-
387 
-
388  // CC1101: GDO0 / RFM95W/SX127x: G0
-
389  #define PIN_RECEIVER_IRQ LORA_IRQ
-
390 
-
391  // CC1101: GDO2 / RFM95W/SX127x: G1
-
392  #define PIN_RECEIVER_GPIO LORA_D1
-
393 
-
394  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
395  #define PIN_RECEIVER_RST LORA_RST
-
396 
-
397 #elif defined(ARDUINO_heltec_wireless_stick) || defined(ARDUINO_heltec_wifi_lora_32_V2)
-
398  // Use pinning for Heltec Wireless Stick or WiFi LoRa32 V2, respectively
-
399  #define PIN_RECEIVER_CS SS
-
400 
-
401  // CC1101: GDO0 / RFM95W/SX127x: G0
-
402  #define PIN_RECEIVER_IRQ DIO0
-
403 
-
404  // CC1101: GDO2 / RFM95W/SX127x: G1
-
405  #define PIN_RECEIVER_GPIO DIO1
-
406 
-
407  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
408  #define PIN_RECEIVER_RST RST_LoRa
-
409 
-
410 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
-
411  // Use pinning for Adafruit Feather ESP32S2 with RFM95W "FeatherWing" ADA3232
-
412  #define PIN_RECEIVER_CS 6
-
413 
-
414  // CC1101: GDO0 / RFM95W/SX127x: G0
-
415  #define PIN_RECEIVER_IRQ 5
-
416 
-
417  // CC1101: GDO2 / RFM95W/SX127x: G1
-
418  #define PIN_RECEIVER_GPIO 11
-
419 
-
420  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
421  #define PIN_RECEIVER_RST 9
-
422 
-
423 #elif defined(ARDUINO_FEATHER_ESP32)
-
424  // Use pinning for Adafruit Feather ESP32 with RFM95W "FeatherWing" ADA3232
-
425  #define PIN_RECEIVER_CS 14
-
426 
-
427  // CC1101: GDO0 / RFM95W/SX127x: G0
-
428  #define PIN_RECEIVER_IRQ 32
-
429 
-
430  // CC1101: GDO2 / RFM95W/SX127x: G1
-
431  #define PIN_RECEIVER_GPIO 33
-
432 
-
433  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
434  #define PIN_RECEIVER_RST 27
-
435 
-
436 #elif defined(ESP32)
-
437  // Generic pinning for ESP32 development boards
-
438  #define PIN_RECEIVER_CS 27
-
439 
-
440  // CC1101: GDO0 / RFM95W/SX127x: G0
-
441  #define PIN_RECEIVER_IRQ 21
-
442 
-
443  // CC1101: GDO2 / RFM95W/SX127x: G1
-
444  #define PIN_RECEIVER_GPIO 33
-
445 
-
446  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
447  #define PIN_RECEIVER_RST 32
-
448 
-
449 #elif defined(ESP8266)
-
450  // Generic pinning for ESP8266 development boards (e.g. LOLIN/WEMOS D1 mini)
-
451  #define PIN_RECEIVER_CS 15
-
452 
-
453  // CC1101: GDO0 / RFM95W/SX127x: G0
-
454  #define PIN_RECEIVER_IRQ 4
-
455 
-
456  // CC1101: GDO2 / RFM95W/SX127x: G1
-
457  #define PIN_RECEIVER_GPIO 5
-
458 
-
459  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
460  #define PIN_RECEIVER_RST 2
-
461 
-
462 #elif defined(ARDUINO_AVR_FEATHER32U4)
-
463  // Pinning for Adafruit Feather 32u4
-
464  #define PIN_RECEIVER_CS 8
-
465 
-
466  // CC1101: GDO0 / RFM95W/SX127x: G0
-
467  #define PIN_RECEIVER_IRQ 7
-
468 
-
469  // CC1101: GDO2 / RFM95W/SX127x: G1 (not used)
-
470  #define PIN_RECEIVER_GPIO 99
-
471 
-
472  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
473  #define PIN_RECEIVER_RST 4
-
474 
-
475 #elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
-
476  // Use pinning for Adafruit Feather RP2040 with RFM95W "FeatherWing" ADA3232
-
477  #define PIN_RECEIVER_CS 7
-
478 
-
479  // CC1101: GDO0 / RFM95W/SX127x: G0
-
480  #define PIN_RECEIVER_IRQ 8
-
481 
-
482  // CC1101: GDO2 / RFM95W/SX127x: G1 (not used)
-
483  #define PIN_RECEIVER_GPIO 10
-
484 
-
485  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
486  #define PIN_RECEIVER_RST 11
-
487 
-
488 #endif
-
489 
-
490 #define STR_HELPER(x) #x
-
491 #define STR(x) STR_HELPER(x)
-
492 #pragma message("Receiver chip: " RECEIVER_CHIP)
-
493 #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) )
-
494 
-
495 #endif
+
339 
+
340 // Arduino default SPI pins
+
341 //
+
342 // Board SCK MOSI MISO
+
343 // ESP8266 D5 D7 D6
+
344 // ESP32 D18 D23 D19
+
345 #if defined(LORAWAN_NODE)
+
346  // Use pinning for LoRaWAN_Node (https://github.com/matthias-bs/LoRaWAN_Node)
+
347  #define PIN_RECEIVER_CS 14
+
348 
+
349  // CC1101: GDO0 / RFM95W/SX127x: G0
+
350  #define PIN_RECEIVER_IRQ 4
+
351 
+
352  // CC1101: GDO2 / RFM95W/SX127x: G1
+
353  #define PIN_RECEIVER_GPIO 16
+
354 
+
355  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
356  #define PIN_RECEIVER_RST 12
+
357 
+
358 #elif defined(FIREBEETLE_ESP32_COVER_LORA)
+
359  #define PIN_RECEIVER_CS 27 // D4
+
360 
+
361  // CC1101: GDO0 / RFM95W/SX127x: G0
+
362  #define PIN_RECEIVER_IRQ 26 // D3
+
363 
+
364  // CC1101: GDO2 / RFM95W/SX127x: G1
+
365  #define PIN_RECEIVER_GPIO 9 // D5
+
366 
+
367  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
368  #define PIN_RECEIVER_RST 25 // D2
+
369 
+
370 #elif defined(ARDUINO_TTGO_LoRa32_V1) || defined(ARDUINO_TTGO_LoRa32_V2)
+
371  // Use pinning for LILIGO TTGO LoRa32-OLED
+
372  #define PIN_RECEIVER_CS LORA_CS
+
373 
+
374  // CC1101: GDO0 / RFM95W/SX127x: G0
+
375  #define PIN_RECEIVER_IRQ LORA_IRQ
+
376 
+
377  // CC1101: GDO2 / RFM95W/SX127x: G1
+
378  // n.c. on v1/v2?, LORA_D1 on v21
+
379  #define PIN_RECEIVER_GPIO 33
+
380 
+
381  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
382  #define PIN_RECEIVER_RST LORA_RST
+
383 
+
384 #elif defined(ARDUINO_TTGO_LoRa32_v21new)
+
385  // Use pinning for LILIGO TTGO LoRa32-OLED V2.1 (1.6.1)
+
386  // Same pinout for Heltec Wireless Stick
+
387  #define PIN_RECEIVER_CS LORA_CS
+
388 
+
389  // CC1101: GDO0 / RFM95W/SX127x: G0
+
390  #define PIN_RECEIVER_IRQ LORA_IRQ
+
391 
+
392  // CC1101: GDO2 / RFM95W/SX127x: G1
+
393  #define PIN_RECEIVER_GPIO LORA_D1
+
394 
+
395  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
396  #define PIN_RECEIVER_RST LORA_RST
+
397 
+
398 #elif defined(ARDUINO_heltec_wireless_stick) || defined(ARDUINO_heltec_wifi_lora_32_V2)
+
399  // Use pinning for Heltec Wireless Stick or WiFi LoRa32 V2, respectively
+
400  #define PIN_RECEIVER_CS SS
+
401 
+
402  // CC1101: GDO0 / RFM95W/SX127x: G0
+
403  #define PIN_RECEIVER_IRQ DIO0
+
404 
+
405  // CC1101: GDO2 / RFM95W/SX127x: G1
+
406  #define PIN_RECEIVER_GPIO DIO1
+
407 
+
408  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
409  #define PIN_RECEIVER_RST RST_LoRa
+
410 
+
411 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
+
412  // Use pinning for Adafruit Feather ESP32S2 with RFM95W "FeatherWing" ADA3232
+
413  #define PIN_RECEIVER_CS 6
+
414 
+
415  // CC1101: GDO0 / RFM95W/SX127x: G0
+
416  #define PIN_RECEIVER_IRQ 5
+
417 
+
418  // CC1101: GDO2 / RFM95W/SX127x: G1
+
419  #define PIN_RECEIVER_GPIO 11
+
420 
+
421  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
422  #define PIN_RECEIVER_RST 9
+
423 
+
424 #elif defined(ARDUINO_FEATHER_ESP32)
+
425  // Use pinning for Adafruit Feather ESP32 with RFM95W "FeatherWing" ADA3232
+
426  #define PIN_RECEIVER_CS 14
+
427 
+
428  // CC1101: GDO0 / RFM95W/SX127x: G0
+
429  #define PIN_RECEIVER_IRQ 32
+
430 
+
431  // CC1101: GDO2 / RFM95W/SX127x: G1
+
432  #define PIN_RECEIVER_GPIO 33
+
433 
+
434  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
435  #define PIN_RECEIVER_RST 27
+
436 
+
437 #elif defined(ESP32)
+
438  // Generic pinning for ESP32 development boards
+
439  #define PIN_RECEIVER_CS 27
+
440 
+
441  // CC1101: GDO0 / RFM95W/SX127x: G0
+
442  #define PIN_RECEIVER_IRQ 21
+
443 
+
444  // CC1101: GDO2 / RFM95W/SX127x: G1
+
445  #define PIN_RECEIVER_GPIO 33
+
446 
+
447  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
448  #define PIN_RECEIVER_RST 32
+
449 
+
450 #elif defined(ESP8266)
+
451  // Generic pinning for ESP8266 development boards (e.g. LOLIN/WEMOS D1 mini)
+
452  #define PIN_RECEIVER_CS 15
+
453 
+
454  // CC1101: GDO0 / RFM95W/SX127x: G0
+
455  #define PIN_RECEIVER_IRQ 4
+
456 
+
457  // CC1101: GDO2 / RFM95W/SX127x: G1
+
458  #define PIN_RECEIVER_GPIO 5
+
459 
+
460  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
461  #define PIN_RECEIVER_RST 2
+
462 
+
463 #elif defined(ARDUINO_AVR_FEATHER32U4)
+
464  // Pinning for Adafruit Feather 32u4
+
465  #define PIN_RECEIVER_CS 8
+
466 
+
467  // CC1101: GDO0 / RFM95W/SX127x: G0
+
468  #define PIN_RECEIVER_IRQ 7
+
469 
+
470  // CC1101: GDO2 / RFM95W/SX127x: G1 (not used)
+
471  #define PIN_RECEIVER_GPIO 99
+
472 
+
473  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
474  #define PIN_RECEIVER_RST 4
+
475 
+
476 #elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
+
477  // Use pinning for Adafruit Feather RP2040 with RFM95W "FeatherWing" ADA3232
+
478  #define PIN_RECEIVER_CS 7
+
479 
+
480  // CC1101: GDO0 / RFM95W/SX127x: G0
+
481  #define PIN_RECEIVER_IRQ 8
+
482 
+
483  // CC1101: GDO2 / RFM95W/SX127x: G1 (not used)
+
484  #define PIN_RECEIVER_GPIO 10
+
485 
+
486  // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
487  #define PIN_RECEIVER_RST 11
+
488 
+
489 #endif
+
490 
+
491 #define STR_HELPER(x) #x
+
492 #define STR(x) STR_HELPER(x)
+
493 #pragma message("Receiver chip: " RECEIVER_CHIP)
+
494 #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) )
+
495 
+
496 #endif