mirror of
https://github.com/revspace/operame
synced 2024-12-04 21:57:30 +00:00
Exit demo with demo button
This commit is contained in:
parent
7f0bb70a93
commit
c3671a07ad
@ -143,6 +143,12 @@ void ppm_demo() {
|
||||
delay(1000);
|
||||
for (int p = 400; p < 1200; p++) {
|
||||
display_ppm(p);
|
||||
if (!digitalRead(demobutton)) {
|
||||
display_logo();
|
||||
delay(500);
|
||||
while (!digitalRead(demobutton));
|
||||
return;
|
||||
}
|
||||
delay(30);
|
||||
}
|
||||
display_logo();
|
||||
|
Loading…
Reference in New Issue
Block a user