Optimization for debugging

pull/14/head
Dennis Bücker 1 year ago
parent ab9b6b04bb
commit d73e207922
  1. 2
      src/EnterColorSequence.cpp
  2. 4
      src/ShowColorSequence.cpp
  3. 4
      src/SimonSays.cpp

@ -177,7 +177,7 @@ void EnterColorSequence::update(SimonSays &simonSays)
// Debug for selection
Serial.print("Input position: ");
Serial.println(inputActiveColor);
Serial.println(inputSequencePosition);
Serial.print("Current color: ");
Serial.println(arrayOfUniqueColors[inputActiveColor]);

@ -36,12 +36,12 @@ void ShowColorSequence::update(SimonSays & simonSays)
simonSays.goToNextPhase();
return;
}
ticksTillNextColor = 100; //TODO: Set this by selected level
ticksTillNextColor = 25;//100; //TODO: Set this by selected level
lastDisplayWasColor = true;
}
else {
simonSays.simonDisplay.displayOneColor(CRGB::Black);
ticksTillNextColor = 25;
ticksTillNextColor = 10;//25;
lastDisplayWasColor = false;
}

@ -55,8 +55,8 @@ void SimonSays::goToNextPhase() {
void SimonSays::generateNewSequence() {
// Values will be generated by Level property
currentSequenceLength = 6;
int numberOfColors = 3;
currentSequenceLength = 3;
int numberOfColors = 2;
Serial.print("Generated sequence ");
for (int i = 0; i < currentSequenceLength; i++)

Loading…
Cancel
Save