1
0
mirror of https://github.com/revspace/operame synced 2024-12-04 13:47:29 +00:00

Exit demo with demo button

This commit is contained in:
Juerd Waalboer 2020-12-22 05:11:33 +01:00
parent 7f0bb70a93
commit c3671a07ad

View File

@ -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();