Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made serial prints more user friendly #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading