diff --git a/_weather_sensor_cfg_8h_source.html b/_weather_sensor_cfg_8h_source.html index 31940d4..6d54b32 100644 --- a/_weather_sensor_cfg_8h_source.html +++ b/_weather_sensor_cfg_8h_source.html @@ -427,290 +427,292 @@
328 #define DEBUG_PORT DEBUG_ESP_PORT
329 #endif
330
-
331 // Set desired level here!
-
332 #define CORE_DEBUG_LEVEL ARDUHAL_LOG_LEVEL_INFO
-
333
-
334 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_NONE
-
335 #define log_e(...) { DEBUG_PORT.printf("%s(), l.%d: ",__func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
-
336 #else
-
337 #define log_e(...) {}
-
338 #endif
-
339 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_ERROR
-
340 #define log_w(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
-
341 #else
-
342 #define log_w(...) {}
-
343 #endif
-
344 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_WARN
-
345 #define log_i(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
-
346 #else
-
347 #define log_i(...) {}
-
348 #endif
-
349 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_INFO
-
350 #define log_d(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
-
351 #else
-
352 #define log_d(...) {}
-
353 #endif
-
354 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_DEBUG
-
355 #define log_v(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
-
356 #else
-
357 #define log_v(...) {}
-
358 #endif
-
359
-
360#endif
+
331 // Set desired level here if not defined elsewhere!
+
332 #if !defined(CORE_DEBUG_LEVEL)
+
333 #define CORE_DEBUG_LEVEL ARDUHAL_LOG_LEVEL_INFO
+
334 #endif
+
335
+
336 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_NONE
+
337 #define log_e(...) { DEBUG_PORT.printf("%s(), l.%d: ",__func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
+
338 #else
+
339 #define log_e(...) {}
+
340 #endif
+
341 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_ERROR
+
342 #define log_w(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
+
343 #else
+
344 #define log_w(...) {}
+
345 #endif
+
346 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_WARN
+
347 #define log_i(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
+
348 #else
+
349 #define log_i(...) {}
+
350 #endif
+
351 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_INFO
+
352 #define log_d(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
+
353 #else
+
354 #define log_d(...) {}
+
355 #endif
+
356 #if defined(DEBUG_PORT) && CORE_DEBUG_LEVEL > ARDUHAL_LOG_LEVEL_DEBUG
+
357 #define log_v(...) { DEBUG_PORT.printf("%s(), l.%d: ", __func__, __LINE__); DEBUG_PORT.printf(__VA_ARGS__); DEBUG_PORT.println(); }
+
358 #else
+
359 #define log_v(...) {}
+
360 #endif
361
-
362#if ( (defined(USE_CC1101) && defined(USE_SX1276)) || \
-
363 (defined(USE_SX1276) && defined(USE_SX1262)) || \
-
364 (defined(USE_SX1262) && defined(USE_CC1101)) )
-
365 #error "Either USE_CC1101 OR USE_SX1276 OR USE_SX1262 must be defined!"
-
366#endif
-
367
-
368#if defined(USE_CC1101)
-
369 #define RECEIVER_CHIP "[CC1101]"
-
370#elif defined(USE_SX1276)
-
371 #define RECEIVER_CHIP "[SX1276]"
-
372#elif defined(USE_SX1262)
-
373 #define RECEIVER_CHIP "[SX1262]"
-
374#else
-
375 #error "Either USE_CC1101, USE_SX1276 or USE_SX1262 must be defined!"
-
376#endif
-
377
-
378
-
379// Arduino default SPI pins
-
380//
-
381// Board SCK MOSI MISO
-
382// ESP8266 D5 D7 D6
-
383// ESP32 D18 D23 D19
-
384#if defined(ARDUINO_DFROBOT_FIREBEETLE_ESP32) && defined(LORAWAN_NODE)
-
385 // Use pinning for LoRaWAN_Node (https://github.com/matthias-bs/LoRaWAN_Node)
-
386 #define PIN_RECEIVER_CS 14
-
387
-
388 // CC1101: GDO0 / RFM95W/SX127x: G0
-
389 #define PIN_RECEIVER_IRQ 4
-
390
-
391 // CC1101: GDO2 / RFM95W/SX127x: G1
-
392 #define PIN_RECEIVER_GPIO 16
-
393
-
394 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
395 #define PIN_RECEIVER_RST 12
-
396
-
397#elif defined(ARDUINO_DFROBOT_FIREBEETLE_ESP32) && defined(DFROBOT_COVER_LORA)
-
398 #define PIN_RECEIVER_CS 27 // D4
-
399
-
400 // CC1101: GDO0 / RFM95W/SX127x: G0
-
401 #define PIN_RECEIVER_IRQ 26 // D3
-
402
-
403 // CC1101: GDO2 / RFM95W/SX127x: G1
-
404 #define PIN_RECEIVER_GPIO 9 // D5
-
405
-
406 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
407 #define PIN_RECEIVER_RST 25 // D2
-
408
-
409#elif defined(ARDUINO_TTGO_LoRa32_V1) || defined(ARDUINO_TTGO_LoRa32_V2)
-
410 // Use pinning for LILIGO TTGO LoRa32-OLED
-
411 #define PIN_RECEIVER_CS LORA_CS
-
412
-
413 // CC1101: GDO0 / RFM95W/SX127x: G0
-
414 #define PIN_RECEIVER_IRQ LORA_IRQ
-
415
-
416 // CC1101: GDO2 / RFM95W/SX127x: G1
-
417 // n.c. on v1/v2?, LORA_D1 on v21
-
418 #define PIN_RECEIVER_GPIO 33
-
419
-
420 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
421 #define PIN_RECEIVER_RST LORA_RST
-
422
-
423#elif defined(ARDUINO_TTGO_LoRa32_v21new)
-
424 // Use pinning for LILIGO TTGO LoRa32-OLED V2.1 (1.6.1)
-
425 #define PIN_RECEIVER_CS LORA_CS
-
426
-
427 // CC1101: GDO0 / RFM95W/SX127x: G0
-
428 #define PIN_RECEIVER_IRQ LORA_IRQ
-
429
-
430 // CC1101: GDO2 / RFM95W/SX127x: G1
-
431 #define PIN_RECEIVER_GPIO LORA_D1
-
432
-
433 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
434 #define PIN_RECEIVER_RST LORA_RST
-
435
-
436#elif defined(ARDUINO_HELTEC_WIRELESS_STICK) || defined(ARDUINO_HELTEC_WIFI_LORA_32_V2)
-
437 // Use pinning for Heltec Wireless Stick or WiFi LoRa32 V2, respectively
-
438 #define PIN_RECEIVER_CS SS
-
439
-
440 // CC1101: GDO0 / RFM95W/SX127x: G0
-
441 #define PIN_RECEIVER_IRQ DIO0
-
442
-
443 // CC1101: GDO2 / RFM95W/SX127x: G1
-
444 #define PIN_RECEIVER_GPIO DIO1
-
445
-
446 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
447 #define PIN_RECEIVER_RST RST_LoRa
-
448
-
449#elif defined(ARDUINO_HELTEC_WIRELESS_STICK_V3)
-
450 // Use pinning for Heltec Wireless Stick V3
-
451 #define PIN_RECEIVER_CS SS
-
452
-
453 // CC1101: GDO0 / RFM95W/SX127x: G0
-
454 #define PIN_RECEIVER_IRQ DIO0
-
455
-
456 // CC1101: GDO2 / RFM95W/SX127x: G1
-
457 #define PIN_RECEIVER_GPIO BUSY_LoRa
-
458
-
459 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
460 #define PIN_RECEIVER_RST RST_LoRa
-
461
-
462#elif defined(ARDUINO_HELTEC_WIFI_LORA_32_V3) || defined(ARDUINO_HELTEC_VISION_MASTER_T190)
-
463 // Use pinning for Heltec WiFi LoRa32 V3 / Vision Master T190
-
464 #define PIN_RECEIVER_CS SS
-
465
-
466 // CC1101: GDO0 / RFM95W/SX127x: G0 / SX1262: DIO0
-
467 #define PIN_RECEIVER_IRQ DIO0
-
468
-
469 // CC1101: GDO2 / RFM95W/SX127x: G1 / SX1262: BUSY
-
470 #define PIN_RECEIVER_GPIO BUSY_LoRa
-
471
-
472 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
473 #define PIN_RECEIVER_RST RST_LoRa
-
474
-
475#elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
-
476 // Use pinning for Adafruit Feather ESP32S2 with RFM95W "FeatherWing" ADA3232
-
477 #define PIN_RECEIVER_CS 6
-
478
-
479 // CC1101: GDO0 / RFM95W/SX127x: G0
-
480 #define PIN_RECEIVER_IRQ 5
-
481
-
482 // CC1101: GDO2 / RFM95W/SX127x: G1
-
483 #define PIN_RECEIVER_GPIO 11
-
484
-
485 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
486 #define PIN_RECEIVER_RST 9
-
487
-
488#elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32_V2)
-
489 // Use pinning for Adafruit Feather ESP32 with RFM95W "FeatherWing" ADA3232
-
490 #define PIN_RECEIVER_CS 14
-
491
-
492 // CC1101: GDO0 / RFM95W/SX127x: G0
-
493 #define PIN_RECEIVER_IRQ 32
-
494
-
495 // CC1101: GDO2 / RFM95W/SX127x: G1
-
496 #define PIN_RECEIVER_GPIO 33
-
497
-
498 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
499 #define PIN_RECEIVER_RST 27
-
500
-
501#elif defined(ARDUINO_FEATHER_ESP32)
-
502 // Use pinning for Adafruit Feather ESP32 with RFM95W "FeatherWing" ADA3232
-
503 #define PIN_RECEIVER_CS 14
-
504
-
505 // CC1101: GDO0 / RFM95W/SX127x: G0
-
506 #define PIN_RECEIVER_IRQ 32
-
507
-
508 // CC1101: GDO2 / RFM95W/SX127x: G1
-
509 #define PIN_RECEIVER_GPIO 33
-
510
-
511 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
512 #define PIN_RECEIVER_RST 27
-
513
-
514#elif defined(ARDUINO_M5STACK_CORE2) || defined(ARDUINO_M5STACK_Core2)
-
515 // Note: Depending on board package file date, either variant is used -
-
516 // see https://github.com/espressif/arduino-esp32/issues/9423!
-
517 // Use pinning for M5Stack Core2 with M5Stack Module LoRa868
-
518 #define PIN_RECEIVER_CS 33
-
519
-
520 // CC1101: GDO0 / RFM95W/SX127x: G0
-
521 #define PIN_RECEIVER_IRQ 36
-
522
-
523 // CC1101: GDO2 / RFM95W/SX127x: G1
-
524 #define PIN_RECEIVER_GPIO 35
-
525
-
526 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
527 #define PIN_RECEIVER_RST 26
-
528
-
529#elif defined(ARDUINO_ESP32S3_POWERFEATHER)
-
530 // Use pinning for ESP32-S3 PowerFeather with RFM95W "FeatherWing" ADA3232
-
531 #define PIN_RECEIVER_CS 15
-
532
-
533 // CC1101: GDO0 / RFM95W/SX127x: G0
-
534 #define PIN_RECEIVER_IRQ 16
-
535
-
536 // CC1101: GDO2 / RFM95W/SX127x: G1
-
537 #define PIN_RECEIVER_GPIO 18
-
538
-
539 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
540 #define PIN_RECEIVER_RST 45
-
541
-
542#elif defined(ARDUINO_ESP32S3_DEV)
-
543 // Use pinning for generic ESP32 S3 board with unspecified radio module
-
544 #define PIN_RECEIVER_CS 10
-
545
-
546 // CC1101: GDO0 / RFM95W/SX127x: G0
-
547 #define PIN_RECEIVER_IRQ 21
-
548
-
549 // CC1101: GDO2 / RFM95W/SX127x: G1
-
550 #define PIN_RECEIVER_GPIO 8
-
551
-
552 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
553 #define PIN_RECEIVER_RST 9
-
554
-
555#elif defined(ARDUINO_MAKERGO_C3_SUPERMINI)
-
556 // Use pinning for Maker Go ESP32C3 Supermini with Heltec HT-RA62
-
557 #define PIN_RECEIVER_CS 7
-
558
-
559 // CC1101: GDO0 / RFM95W/SX127x: G0 / SX1262: DI01
-
560 #define PIN_RECEIVER_IRQ 1
-
561
-
562 // CC1101: GDO2 / RFM95W/SX127x: G1 / SX1262: BUSY
-
563 #define PIN_RECEIVER_GPIO 2
-
564
-
565 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC / SX1262: RESET
-
566 #define PIN_RECEIVER_RST 3
-
567
-
568#elif defined(ESP32)
-
569 // Generic pinning for ESP32 development boards
-
570 #define PIN_RECEIVER_CS 27
-
571
-
572 // CC1101: GDO0 / RFM95W/SX127x: G0
-
573 #define PIN_RECEIVER_IRQ 21
-
574
-
575 // CC1101: GDO2 / RFM95W/SX127x: G1
-
576 #define PIN_RECEIVER_GPIO 33
-
577
-
578 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
579 #define PIN_RECEIVER_RST 32
-
580
-
581#elif defined(ESP8266)
-
582 // Generic pinning for ESP8266 development boards (e.g. LOLIN/WEMOS D1 mini)
-
583 #define PIN_RECEIVER_CS 15
-
584
-
585 // CC1101: GDO0 / RFM95W/SX127x: G0
-
586 #define PIN_RECEIVER_IRQ 4
-
587
-
588 // CC1101: GDO2 / RFM95W/SX127x: G1
-
589 #define PIN_RECEIVER_GPIO 5
-
590
-
591 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
592 #define PIN_RECEIVER_RST 2
-
593
-
594#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
-
595 // Use pinning for Adafruit Feather RP2040 with RFM95W "FeatherWing" ADA3232
-
596 #define PIN_RECEIVER_CS 7
-
597
-
598 // CC1101: GDO0 / RFM95W/SX127x: G0
-
599 #define PIN_RECEIVER_IRQ 8
-
600
-
601 // CC1101: GDO2 / RFM95W/SX127x: G1 (not used)
-
602 #define PIN_RECEIVER_GPIO 10
-
603
-
604 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
-
605 #define PIN_RECEIVER_RST 11
-
606
-
607#endif
+
362#endif
+
363
+
364#if ( (defined(USE_CC1101) && defined(USE_SX1276)) || \
+
365 (defined(USE_SX1276) && defined(USE_SX1262)) || \
+
366 (defined(USE_SX1262) && defined(USE_CC1101)) )
+
367 #error "Either USE_CC1101 OR USE_SX1276 OR USE_SX1262 must be defined!"
+
368#endif
+
369
+
370#if defined(USE_CC1101)
+
371 #define RECEIVER_CHIP "[CC1101]"
+
372#elif defined(USE_SX1276)
+
373 #define RECEIVER_CHIP "[SX1276]"
+
374#elif defined(USE_SX1262)
+
375 #define RECEIVER_CHIP "[SX1262]"
+
376#else
+
377 #error "Either USE_CC1101, USE_SX1276 or USE_SX1262 must be defined!"
+
378#endif
+
379
+
380
+
381// Arduino default SPI pins
+
382//
+
383// Board SCK MOSI MISO
+
384// ESP8266 D5 D7 D6
+
385// ESP32 D18 D23 D19
+
386#if defined(ARDUINO_DFROBOT_FIREBEETLE_ESP32) && defined(LORAWAN_NODE)
+
387 // Use pinning for LoRaWAN_Node (https://github.com/matthias-bs/LoRaWAN_Node)
+
388 #define PIN_RECEIVER_CS 14
+
389
+
390 // CC1101: GDO0 / RFM95W/SX127x: G0
+
391 #define PIN_RECEIVER_IRQ 4
+
392
+
393 // CC1101: GDO2 / RFM95W/SX127x: G1
+
394 #define PIN_RECEIVER_GPIO 16
+
395
+
396 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
397 #define PIN_RECEIVER_RST 12
+
398
+
399#elif defined(ARDUINO_DFROBOT_FIREBEETLE_ESP32) && defined(DFROBOT_COVER_LORA)
+
400 #define PIN_RECEIVER_CS 27 // D4
+
401
+
402 // CC1101: GDO0 / RFM95W/SX127x: G0
+
403 #define PIN_RECEIVER_IRQ 26 // D3
+
404
+
405 // CC1101: GDO2 / RFM95W/SX127x: G1
+
406 #define PIN_RECEIVER_GPIO 9 // D5
+
407
+
408 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
409 #define PIN_RECEIVER_RST 25 // D2
+
410
+
411#elif defined(ARDUINO_TTGO_LoRa32_V1) || defined(ARDUINO_TTGO_LoRa32_V2)
+
412 // Use pinning for LILIGO TTGO LoRa32-OLED
+
413 #define PIN_RECEIVER_CS LORA_CS
+
414
+
415 // CC1101: GDO0 / RFM95W/SX127x: G0
+
416 #define PIN_RECEIVER_IRQ LORA_IRQ
+
417
+
418 // CC1101: GDO2 / RFM95W/SX127x: G1
+
419 // n.c. on v1/v2?, LORA_D1 on v21
+
420 #define PIN_RECEIVER_GPIO 33
+
421
+
422 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
423 #define PIN_RECEIVER_RST LORA_RST
+
424
+
425#elif defined(ARDUINO_TTGO_LoRa32_v21new)
+
426 // Use pinning for LILIGO TTGO LoRa32-OLED V2.1 (1.6.1)
+
427 #define PIN_RECEIVER_CS LORA_CS
+
428
+
429 // CC1101: GDO0 / RFM95W/SX127x: G0
+
430 #define PIN_RECEIVER_IRQ LORA_IRQ
+
431
+
432 // CC1101: GDO2 / RFM95W/SX127x: G1
+
433 #define PIN_RECEIVER_GPIO LORA_D1
+
434
+
435 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
436 #define PIN_RECEIVER_RST LORA_RST
+
437
+
438#elif defined(ARDUINO_HELTEC_WIRELESS_STICK) || defined(ARDUINO_HELTEC_WIFI_LORA_32_V2)
+
439 // Use pinning for Heltec Wireless Stick or WiFi LoRa32 V2, respectively
+
440 #define PIN_RECEIVER_CS SS
+
441
+
442 // CC1101: GDO0 / RFM95W/SX127x: G0
+
443 #define PIN_RECEIVER_IRQ DIO0
+
444
+
445 // CC1101: GDO2 / RFM95W/SX127x: G1
+
446 #define PIN_RECEIVER_GPIO DIO1
+
447
+
448 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
449 #define PIN_RECEIVER_RST RST_LoRa
+
450
+
451#elif defined(ARDUINO_HELTEC_WIRELESS_STICK_V3)
+
452 // Use pinning for Heltec Wireless Stick V3
+
453 #define PIN_RECEIVER_CS SS
+
454
+
455 // CC1101: GDO0 / RFM95W/SX127x: G0
+
456 #define PIN_RECEIVER_IRQ DIO0
+
457
+
458 // CC1101: GDO2 / RFM95W/SX127x: G1
+
459 #define PIN_RECEIVER_GPIO BUSY_LoRa
+
460
+
461 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
462 #define PIN_RECEIVER_RST RST_LoRa
+
463
+
464#elif defined(ARDUINO_HELTEC_WIFI_LORA_32_V3) || defined(ARDUINO_HELTEC_VISION_MASTER_T190)
+
465 // Use pinning for Heltec WiFi LoRa32 V3 / Vision Master T190
+
466 #define PIN_RECEIVER_CS SS
+
467
+
468 // CC1101: GDO0 / RFM95W/SX127x: G0 / SX1262: DIO0
+
469 #define PIN_RECEIVER_IRQ DIO0
+
470
+
471 // CC1101: GDO2 / RFM95W/SX127x: G1 / SX1262: BUSY
+
472 #define PIN_RECEIVER_GPIO BUSY_LoRa
+
473
+
474 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
475 #define PIN_RECEIVER_RST RST_LoRa
+
476
+
477#elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
+
478 // Use pinning for Adafruit Feather ESP32S2 with RFM95W "FeatherWing" ADA3232
+
479 #define PIN_RECEIVER_CS 6
+
480
+
481 // CC1101: GDO0 / RFM95W/SX127x: G0
+
482 #define PIN_RECEIVER_IRQ 5
+
483
+
484 // CC1101: GDO2 / RFM95W/SX127x: G1
+
485 #define PIN_RECEIVER_GPIO 11
+
486
+
487 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
488 #define PIN_RECEIVER_RST 9
+
489
+
490#elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32_V2)
+
491 // Use pinning for Adafruit Feather ESP32 with RFM95W "FeatherWing" ADA3232
+
492 #define PIN_RECEIVER_CS 14
+
493
+
494 // CC1101: GDO0 / RFM95W/SX127x: G0
+
495 #define PIN_RECEIVER_IRQ 32
+
496
+
497 // CC1101: GDO2 / RFM95W/SX127x: G1
+
498 #define PIN_RECEIVER_GPIO 33
+
499
+
500 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
501 #define PIN_RECEIVER_RST 27
+
502
+
503#elif defined(ARDUINO_FEATHER_ESP32)
+
504 // Use pinning for Adafruit Feather ESP32 with RFM95W "FeatherWing" ADA3232
+
505 #define PIN_RECEIVER_CS 14
+
506
+
507 // CC1101: GDO0 / RFM95W/SX127x: G0
+
508 #define PIN_RECEIVER_IRQ 32
+
509
+
510 // CC1101: GDO2 / RFM95W/SX127x: G1
+
511 #define PIN_RECEIVER_GPIO 33
+
512
+
513 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
514 #define PIN_RECEIVER_RST 27
+
515
+
516#elif defined(ARDUINO_M5STACK_CORE2) || defined(ARDUINO_M5STACK_Core2)
+
517 // Note: Depending on board package file date, either variant is used -
+
518 // see https://github.com/espressif/arduino-esp32/issues/9423!
+
519 // Use pinning for M5Stack Core2 with M5Stack Module LoRa868
+
520 #define PIN_RECEIVER_CS 33
+
521
+
522 // CC1101: GDO0 / RFM95W/SX127x: G0
+
523 #define PIN_RECEIVER_IRQ 36
+
524
+
525 // CC1101: GDO2 / RFM95W/SX127x: G1
+
526 #define PIN_RECEIVER_GPIO 35
+
527
+
528 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
529 #define PIN_RECEIVER_RST 26
+
530
+
531#elif defined(ARDUINO_ESP32S3_POWERFEATHER)
+
532 // Use pinning for ESP32-S3 PowerFeather with RFM95W "FeatherWing" ADA3232
+
533 #define PIN_RECEIVER_CS 15
+
534
+
535 // CC1101: GDO0 / RFM95W/SX127x: G0
+
536 #define PIN_RECEIVER_IRQ 16
+
537
+
538 // CC1101: GDO2 / RFM95W/SX127x: G1
+
539 #define PIN_RECEIVER_GPIO 18
+
540
+
541 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
542 #define PIN_RECEIVER_RST 45
+
543
+
544#elif defined(ARDUINO_ESP32S3_DEV)
+
545 // Use pinning for generic ESP32 S3 board with unspecified radio module
+
546 #define PIN_RECEIVER_CS 10
+
547
+
548 // CC1101: GDO0 / RFM95W/SX127x: G0
+
549 #define PIN_RECEIVER_IRQ 21
+
550
+
551 // CC1101: GDO2 / RFM95W/SX127x: G1
+
552 #define PIN_RECEIVER_GPIO 8
+
553
+
554 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
555 #define PIN_RECEIVER_RST 9
+
556
+
557#elif defined(ARDUINO_MAKERGO_C3_SUPERMINI)
+
558 // Use pinning for Maker Go ESP32C3 Supermini with Heltec HT-RA62
+
559 #define PIN_RECEIVER_CS 7
+
560
+
561 // CC1101: GDO0 / RFM95W/SX127x: G0 / SX1262: DI01
+
562 #define PIN_RECEIVER_IRQ 1
+
563
+
564 // CC1101: GDO2 / RFM95W/SX127x: G1 / SX1262: BUSY
+
565 #define PIN_RECEIVER_GPIO 2
+
566
+
567 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC / SX1262: RESET
+
568 #define PIN_RECEIVER_RST 3
+
569
+
570#elif defined(ESP32)
+
571 // Generic pinning for ESP32 development boards
+
572 #define PIN_RECEIVER_CS 27
+
573
+
574 // CC1101: GDO0 / RFM95W/SX127x: G0
+
575 #define PIN_RECEIVER_IRQ 21
+
576
+
577 // CC1101: GDO2 / RFM95W/SX127x: G1
+
578 #define PIN_RECEIVER_GPIO 33
+
579
+
580 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
581 #define PIN_RECEIVER_RST 32
+
582
+
583#elif defined(ESP8266)
+
584 // Generic pinning for ESP8266 development boards (e.g. LOLIN/WEMOS D1 mini)
+
585 #define PIN_RECEIVER_CS 15
+
586
+
587 // CC1101: GDO0 / RFM95W/SX127x: G0
+
588 #define PIN_RECEIVER_IRQ 4
+
589
+
590 // CC1101: GDO2 / RFM95W/SX127x: G1
+
591 #define PIN_RECEIVER_GPIO 5
+
592
+
593 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
594 #define PIN_RECEIVER_RST 2
+
595
+
596#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
+
597 // Use pinning for Adafruit Feather RP2040 with RFM95W "FeatherWing" ADA3232
+
598 #define PIN_RECEIVER_CS 7
+
599
+
600 // CC1101: GDO0 / RFM95W/SX127x: G0
+
601 #define PIN_RECEIVER_IRQ 8
+
602
+
603 // CC1101: GDO2 / RFM95W/SX127x: G1 (not used)
+
604 #define PIN_RECEIVER_GPIO 10
+
605
+
606 // RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
+
607 #define PIN_RECEIVER_RST 11
608
-
609#define STR_HELPER(x) #x
-
610#define STR(x) STR_HELPER(x)
-
611#pragma message("Receiver chip: " RECEIVER_CHIP)
-
612#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) )
-
613
-
614#endif
+
609#endif
+
610
+
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) )
+
615
+
616#endif