Skip to content

Commit

Permalink
Added var for duration
Browse files Browse the repository at this point in the history
  • Loading branch information
arcbtc committed Aug 22, 2024
1 parent 27f2bf0 commit 444d3a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nostrZapLamp/nostrZapLamp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ String config_wifi_password = "null"; // 'String config_wifi_password = "passwor
String config_pubkey = "null";
String config_relay = "null";

int onDuration = 10000;
///////////////////////////////////////////////////////////////////////////////////
// END of variables //
///////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -285,7 +286,7 @@ void changeBrightness() {
void doLightningFlash(int numberOfFlashes) {

analogWrite(ledPin, 255);
delay(5000);
delay(onDuration);
analogWrite(ledPin, 0);
}

Expand Down

0 comments on commit 444d3a5

Please sign in to comment.