Pedals lighting up
This commit is contained in:
parent
605466d7a2
commit
3fc093a923
@ -83,7 +83,6 @@ void RealTimeSystem(byte realtimebyte) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
void setup() {
|
||||
for (int i = 0; i < 8; i++) {
|
||||
pinMode(pins[i], INPUT_PULLUP);
|
||||
@ -102,6 +101,12 @@ void setup() {
|
||||
usbMIDI.setHandleRealTimeSystem(RealTimeSystem);
|
||||
leds.begin();
|
||||
leds.show();
|
||||
/*
|
||||
for (uint16_t i=0; i < strip.numPixels(); i=i+3) {
|
||||
leds.setPixelColor(i,255,255,255);
|
||||
}
|
||||
leds.show();
|
||||
*/
|
||||
}
|
||||
|
||||
void loop() {
|
||||
@ -153,8 +158,12 @@ void loop() {
|
||||
{*/
|
||||
if (tempState == 0) {
|
||||
usbMIDI.sendNoteOn(i, 127, 1);
|
||||
leds.setPixelColor(i,255,255,255);
|
||||
leds.show();
|
||||
} else {
|
||||
usbMIDI.sendNoteOff(i, 0, 1);
|
||||
leds.setPixelColor(i,0,0,0);
|
||||
leds.show();
|
||||
}
|
||||
// }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user