From a06935faec5beeac06c7d5a4b9f3e6c01e058f1f Mon Sep 17 00:00:00 2001 From: blackcoffeexbt <87530449+blackcoffeexbt@users.noreply.github.com> Date: Mon, 30 Oct 2023 21:16:11 +0000 Subject: [PATCH] Bug fix for config launch --- nostrZapLamp/nostrZapLamp.ino | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nostrZapLamp/nostrZapLamp.ino b/nostrZapLamp/nostrZapLamp.ino index 4db606b..2791c16 100644 --- a/nostrZapLamp/nostrZapLamp.ino +++ b/nostrZapLamp/nostrZapLamp.ino @@ -41,7 +41,7 @@ struct KeyValue { }; int buttonPin = 4; -int portalPin = 2; +int portalPin = 15; int triggerAp = false; bool lastInternetConnectionState = true; @@ -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 || @@ -628,7 +630,7 @@ void setup() { timer = timer + 100; delay(150); - digitalWrite(2, LOW); + digitalWrite(ledPin, LOW); delay(150); }