From bfd6bc6a01cc22c8d5b228c2f3b822125083a64c Mon Sep 17 00:00:00 2001 From: "John M. Wargo" Date: Mon, 15 Apr 2024 07:28:55 -0400 Subject: [PATCH] Update DFRobotAS3935LightningSensorOrdinary.ino Removed conditional selection of IRQ pins as they dealt with the developer's hardware configuration. Added a comment that explained what the user should do. This simplifies the sample code. --- .../DFRobotAS3935LightningSensorOrdinary.ino | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino b/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino index 3766c2a..f06b323 100644 --- a/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino +++ b/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino @@ -19,11 +19,9 @@ volatile int8_t AS3935IsrTrig = 0; -#if defined(ESP32) || defined(ESP8266) -#define IRQ_PIN 0 -#else +// Connect the license sensor's IRQ pin to a GPIO pin on the microcontroller +// then replace the number below with the GPIO pin number #define IRQ_PIN 2 -#endif // Antenna tuning capcitance (must be integer multiple of 8, 8 - 120 pf) #define AS3935_CAPACITANCE 96