Skip to content

Commit

Permalink
Update bbn_m5atomS3_lite_AS3935_lightning.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Nov 14, 2024
1 parent 48d27dc commit cea1cb2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// 0x03 is default i2c address, but the address can also be 0x02, 0x01.
// Adjust the address jumpers on the underside of the product.
// C - SCL i2c clock
// D - SDL i2c data
// D - SDA i2c data
#define AS3935_ADDR 0x03
#define LIGHTNING_INT 0x08
#define DISTURBER_INT 0x04
Expand All @@ -26,7 +26,7 @@ void setup() {
AtomS3.begin(cfg);
Serial.begin(4800);

Wire.begin(G2 /* SDL */, G1 /* SCL */, 100000UL);
Wire.begin(G2 /* SDA */, G1 /* SCL */, 100000UL);

pinMode(lightningInt, INPUT); // When lightning is detected the interrupt pin goes HIGH.

Expand Down

0 comments on commit cea1cb2

Please sign in to comment.