From 363cdce3e818a0309edaa1a18b2bbfaf9eb9baf8 Mon Sep 17 00:00:00 2001 From: blackcoffeexbt <87530449+blackcoffeexbt@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:50:52 +0000 Subject: [PATCH] Made serial prints more user friendly --- nostrZapLamp/100_config.ino | 2 +- nostrZapLamp/nostrZapLamp.ino | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nostrZapLamp/100_config.ino b/nostrZapLamp/100_config.ino index 4399a49..616ea73 100644 --- a/nostrZapLamp/100_config.ino +++ b/nostrZapLamp/100_config.ino @@ -1,5 +1,5 @@ void configOverSerialPort() { - Serial.println("Launching configOverSerialPort"); + Serial.println("Putting device into web serial configration mode."); executeConfig(); } diff --git a/nostrZapLamp/nostrZapLamp.ino b/nostrZapLamp/nostrZapLamp.ino index 14587e9..26788cf 100644 --- a/nostrZapLamp/nostrZapLamp.ino +++ b/nostrZapLamp/nostrZapLamp.ino @@ -618,7 +618,8 @@ void setup() { bool triggerConfig = false; int timer = 0; - Serial.println("Should we trigger web serial config?"); + Serial.println("Should we put the device into web serial configuration mode?"); + Serial.println("To trigger config mode, touch pin (GPIO " + String(portalPin) + ") or hold the button (GPIO " + String(buttonPin) + ") and reset the device."); Serial.println("Touch pin (GPIO " + String(portalPin) + ") value is " + String(touchRead(portalPin))); Serial.println("Button pin (GPIO " + String(buttonPin) + ") value is " + String(digitalRead(buttonPin))); @@ -635,10 +636,10 @@ void setup() { timer = 5000; } - timer = timer + 100; delay(150); analogWrite(ledPin, 0); delay(150); + timer = timer + 300; } readFiles(); // get the saved details and store in global variables