Skip to content

Commit

Permalink
Made serial prints more user friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoffeexbt committed Oct 31, 2023
1 parent d86bd85 commit 363cdce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nostrZapLamp/100_config.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
void configOverSerialPort() {
Serial.println("Launching configOverSerialPort");
Serial.println("Putting device into web serial configration mode.");
executeConfig();
}

Expand Down
5 changes: 3 additions & 2 deletions nostrZapLamp/nostrZapLamp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand All @@ -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
Expand Down

0 comments on commit 363cdce

Please sign in to comment.