Speed up boot: delay 2s->500ms, animation ~2.8s->0.5s
This commit is contained in:
+4
-4
@@ -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
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user