From b2bae6b9e4f281fdae288f14daaae4041a846045 Mon Sep 17 00:00:00 2001 From: "John M. Wargo" Date: Sun, 19 May 2024 13:51:33 -0400 Subject: [PATCH] Update DFRobotAS3935LightningSensorOrdinary.ino Updated the sample based on feedback I received from support regarding my previous PR (#14) --- .../DFRobotAS3935LightningSensorOrdinary.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino b/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino index f06b323..a3a836b 100644 --- a/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino +++ b/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino @@ -19,8 +19,10 @@ volatile int8_t AS3935IsrTrig = 0; -// Connect the license sensor's IRQ pin to a GPIO pin on the microcontroller -// then replace the number below with the GPIO pin number +// 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 // Antenna tuning capcitance (must be integer multiple of 8, 8 - 120 pf)