614 B
614 B
Bankable NoteLED
Bank-switched LED responds to different notes per bank.
#include "pico/stdlib.h"
#include "pico/cyw43_arch.h"
#include <cs_midi.h>
using namespace cs;
BluetoothMIDI_Interface midi;
Bank<4> bank(1);
IncrementDecrementSelector<4> selector {
bank,
{2, 3},
Wrap::Wrap,
};
Bankable::NoteLED<4> led {
{bank, BankType::ChangeAddress},
13,
{MIDI_Notes::C[4], Channel_1},
};
int main() {
stdio_init_all();
if (cyw43_arch_init()) return 1;
Control_Surface.begin();
while (true) {
Control_Surface.loop();
sleep_ms(1);
}
}