Browse Source

Add check for simple win condition

pull/14/head
Dennis Bücker 2 months ago
parent
commit
9eb5512a1a
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/SimonSays.cpp

+ 7
- 0
src/SimonSays.cpp View File

@ -85,6 +85,13 @@ void SimonSays::checkBtnPress()
{
if (m5device.Btn.wasPressed()) {
Serial.println("Btn pressed");
if (currentColorId == 0) {
Serial.println("success");
}
else {
Serial.println("FAIL!");
}
}
};


Loading…
Cancel
Save