Skip to content

Commit

Permalink
Merge pull request #17 from blackcoffeexbt/config-fixes
Browse files Browse the repository at this point in the history
Bug fix for config launch
  • Loading branch information
blackcoffeexbt authored Oct 30, 2023
2 parents dee6b0d + a06935f commit 6da7577
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nostrZapLamp/nostrZapLamp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct KeyValue {
};

int buttonPin = 4;
int portalPin = 2;
int portalPin = 15;
int triggerAp = false;

bool lastInternetConnectionState = true;
Expand Down Expand Up @@ -614,8 +614,10 @@ void setup() {
int timer = 0;
while (timer < 2000)
{
digitalWrite(2, HIGH);
Serial.println(touchRead(portalPin));
digitalWrite(ledPin, HIGH);

Serial.println("Portal pin value is " + String(touchRead(portalPin)));
Serial.println("Button pin is" + String(digitalRead(buttonPin)));
if (
touchRead(portalPin) < 60
||
Expand All @@ -628,7 +630,7 @@ void setup() {

timer = timer + 100;
delay(150);
digitalWrite(2, LOW);
digitalWrite(ledPin, LOW);
delay(150);
}

Expand Down

0 comments on commit 6da7577

Please sign in to comment.