Compare commits
2 Commits
99014b0f1d
...
b3322b169b
| Author | SHA1 | Date | |
|---|---|---|---|
| b3322b169b | |||
| dd9ced2962 |
@ -220,7 +220,6 @@ void setup() {
|
||||
|
||||
pinMode(PIN_TRIGGER_SHUFFLE, INPUT);
|
||||
pinMode(PIN_POWER_ON, INPUT);
|
||||
powerOnState = digitalRead(PIN_POWER_ON) == HIGH;
|
||||
pinMode(PIN_SEND_WIN, OUTPUT);
|
||||
digitalWrite(PIN_SEND_WIN, LOW);
|
||||
|
||||
@ -231,6 +230,8 @@ void setup() {
|
||||
pinMode(7, INPUT_PULLUP);
|
||||
pinMode(8, INPUT_PULLUP);
|
||||
|
||||
powerOnState = digitalRead(PIN_POWER_ON) == HIGH;
|
||||
|
||||
for (uint8_t i = 0; i < 12; i++)
|
||||
expander.write(i, HIGH);
|
||||
|
||||
|
||||
@ -67,13 +67,13 @@ void winAnimation() {
|
||||
for (int i = 0; i < NUM_LEDS; i++) {
|
||||
strip.setPixelColor(
|
||||
ledIndex(i),
|
||||
strip.Color(25, 25, 0)
|
||||
strip.Color(35, 10, 0)
|
||||
);
|
||||
strip.show();
|
||||
delay(20);
|
||||
}
|
||||
|
||||
setAll(strip.Color(25, 25, 0));
|
||||
setAll(strip.Color(35, 10, 0));
|
||||
strip.show();
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ void checkPress(int buttonID) {
|
||||
if (buttonID == sequence[currentStep]) {
|
||||
strip.setPixelColor(
|
||||
ledIndex(currentStep),
|
||||
strip.Color(25, 25, 0)
|
||||
strip.Color(35, 10, 0)
|
||||
);
|
||||
strip.show();
|
||||
currentStep++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user