Speed up boot: delay 2s->500ms, animation ~2.8s->0.5s

This commit is contained in:
ash
2026-07-02 09:09:52 +00:00
parent 9ab9424a76
commit e2464e11bc
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -198,14 +198,14 @@ void DefaultLedStub::begin() {
// Launchpad X style: sweep each LED through palette, then all-off
for (int i = 0; i < NUM_LEDS; i++) {
for (int c = 1; c <= 127; c += 8) {
for (int c = 1; c <= 127; c += 16) {
uint32_t color = launchpad_palette[c];
uint8_t r = (color >> 16) & 0xFF;
uint8_t g = (color >> 8) & 0xFF;
uint8_t b = color & 0xFF;
mux_ptr->set_led_color(i, r, g, b);
mux_ptr->show();
delay(15);
delay(5);
}
// Turn off this LED before moving to next
mux_ptr->set_led_color(i, 0, 0, 0);
@@ -213,7 +213,7 @@ void DefaultLedStub::begin() {
}
// Final: all LEDs pulse through palette once together
for (int c = 1; c <= 127; c += 4) {
for (int c = 1; c <= 127; c += 8) {
uint32_t color = launchpad_palette[c];
uint8_t r = (color >> 16) & 0xFF;
uint8_t g = (color >> 8) & 0xFF;
@@ -222,7 +222,7 @@ void DefaultLedStub::begin() {
mux_ptr->set_led_color(i, r, g, b);
}
mux_ptr->show();
delay(12);
delay(8);
}
clear_all();
+1 -1
View File
@@ -364,7 +364,7 @@ void handle_serial_command(const String& cmd) {
void setup() {
Serial.begin(115200);
delay(2000);
delay(500);
Serial.println("=================================");
Serial.println(" Loopy MIDI Controller v0.1");