From 98a4fa7efece5ea397ae6374b9291b50c9efdf74 Mon Sep 17 00:00:00 2001 From: "John M. Wargo" Date: Sun, 19 May 2024 13:53:43 -0400 Subject: [PATCH] Update DFRobotAS3935LightningSensorDetailed.ino Made the same change in this file as I did in #16 --- .../DFRobotAS3935LightningSensorDetailed.ino | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/DFRobotAS3935LightningSensorDetailed/DFRobotAS3935LightningSensorDetailed.ino b/examples/DFRobotAS3935LightningSensorDetailed/DFRobotAS3935LightningSensorDetailed.ino index ce21435..317bded 100644 --- a/examples/DFRobotAS3935LightningSensorDetailed/DFRobotAS3935LightningSensorDetailed.ino +++ b/examples/DFRobotAS3935LightningSensorDetailed/DFRobotAS3935LightningSensorDetailed.ino @@ -20,12 +20,11 @@ volatile int8_t AS3935IsrTrig = 0; - -#if defined(ESP32) || defined(ESP8266) -#define IRQ_PIN 0 -#else +// The Arduino UNO can only use IO2 or IO3 as interrupt pins, whereas the +// ESP32 can use all pins as interrupt pins. Connect the lightning sensor's +// IRQ pin to a GPIO pin on the microcontroller then replace the number +// below with the connected GPIO pin. #define IRQ_PIN 2 -#endif // Antenna tuning capcitance (must be integer multiple of 8, 8 - 120 pf) #define AS3935_CAPACITANCE 96