Pedals lighting up

This commit is contained in:
Lukas Bachschwell 2016-07-15 13:49:32 +02:00
parent 605466d7a2
commit 3fc093a923

View File

@ -83,7 +83,6 @@ void RealTimeSystem(byte realtimebyte) {
} }
void setup() { void setup() {
for (int i = 0; i < 8; i++) { for (int i = 0; i < 8; i++) {
pinMode(pins[i], INPUT_PULLUP); pinMode(pins[i], INPUT_PULLUP);
@ -102,6 +101,12 @@ void setup() {
usbMIDI.setHandleRealTimeSystem(RealTimeSystem); usbMIDI.setHandleRealTimeSystem(RealTimeSystem);
leds.begin(); leds.begin();
leds.show(); leds.show();
/*
for (uint16_t i=0; i < strip.numPixels(); i=i+3) {
leds.setPixelColor(i,255,255,255);
}
leds.show();
*/
} }
void loop() { void loop() {
@ -153,8 +158,12 @@ void loop() {
{*/ {*/
if (tempState == 0) { if (tempState == 0) {
usbMIDI.sendNoteOn(i, 127, 1); usbMIDI.sendNoteOn(i, 127, 1);
leds.setPixelColor(i,255,255,255);
leds.show();
} else { } else {
usbMIDI.sendNoteOff(i, 0, 1); usbMIDI.sendNoteOff(i, 0, 1);
leds.setPixelColor(i,0,0,0);
leds.show();
} }
// } // }