Clean up: remove boot layout test (Launchpad X mapping confirmed working)

This commit is contained in:
2026-06-24 05:47:09 +00:00
parent e2997a595d
commit 0e5cbeb73d
2 changed files with 0 additions and 27 deletions
-1
View File
@@ -30,5 +30,4 @@ private:
bool last_switch_state[NUM_PADS];
void process_switch_event(uint8_t switch_id, bool pressed);
void run_layout_test();
};
-26
View File
@@ -1,7 +1,5 @@
#include "app_task.h"
#include <Arduino.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
AppTask::AppTask(LedStub* led, SwitchStub* sw, UsbMidiTransport* midi)
: led_driver(led), switch_driver(sw), midi_transport(midi) {
@@ -25,33 +23,9 @@ void AppTask::begin() {
process_midi_event(event);
});
// Auto-run layout test on boot (no serial needed)
run_layout_test();
Serial.println("[APP] Controller ready");
}
void AppTask::run_layout_test() {
Serial.println("[APP] Running layout test (Launchpad X: notes 36-45, ch1)...");
// Quick test: Launchpad X (notes 36-45, ch1) - 500ms per pad
for (uint8_t i = 0; i < NUM_PADS; i++) {
MidiEvent event;
event.type = MidiEvent::NOTE_ON;
event.channel = 1;
event.data1 = 36 + i;
event.data2 = 64;
process_midi_event(event);
vTaskDelay(pdMS_TO_TICKS(500));
event.type = MidiEvent::NOTE_OFF;
event.data2 = 0;
process_midi_event(event);
vTaskDelay(pdMS_TO_TICKS(100));
}
Serial.println("[APP] Layout test complete");
}
void AppTask::update() {
for (uint8_t i = 0; i < NUM_PADS; i++) {
bool is_pressed = switch_driver->is_pressed(i);