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.
pull/14/head
John M. Wargo 1 month ago committed by GitHub
parent 55da8f5a7c
commit bfd6bc6a01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino

@ -19,11 +19,9 @@
volatile int8_t AS3935IsrTrig = 0; volatile int8_t AS3935IsrTrig = 0;
#if defined(ESP32) || defined(ESP8266) // Connect the license sensor's IRQ pin to a GPIO pin on the microcontroller
#define IRQ_PIN 0 // then replace the number below with the GPIO pin number
#else
#define IRQ_PIN 2 #define IRQ_PIN 2
#endif
// Antenna tuning capcitance (must be integer multiple of 8, 8 - 120 pf) // Antenna tuning capcitance (must be integer multiple of 8, 8 - 120 pf)
#define AS3935_CAPACITANCE 96 #define AS3935_CAPACITANCE 96

Loading…
Cancel
Save