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