|
|
@ -20,12 +20,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
volatile int8_t AS3935IsrTrig = 0; |
|
|
|
volatile int8_t AS3935IsrTrig = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The Arduino UNO can only use IO2 or IO3 as interrupt pins, whereas the
|
|
|
|
#if defined(ESP32) || defined(ESP8266) |
|
|
|
// ESP32 can use all pins as interrupt pins. Connect the lightning sensor's
|
|
|
|
#define IRQ_PIN 0 |
|
|
|
// IRQ pin to a GPIO pin on the microcontroller then replace the number
|
|
|
|
#else |
|
|
|
// below with the connected GPIO pin.
|
|
|
|
#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 |
|
|
|