31 lines
513 B
Markdown
31 lines
513 B
Markdown
# NoteLED
|
|
|
|
LED responds to incoming Note On/Off messages.
|
|
|
|
> Original: `1.Note-LED.ino`
|
|
|
|
```cpp pico
|
|
#include "pico/stdlib.h"
|
|
#include "pico/cyw43_arch.h"
|
|
#include <cs_midi.h>
|
|
|
|
using namespace cs;
|
|
|
|
BluetoothMIDI_Interface midi;
|
|
|
|
NoteLED led {
|
|
13, // LED pin
|
|
{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);
|
|
}
|
|
}
|
|
```
|