From 3fc093a92316b2ab445b809e913fce46054c8187 Mon Sep 17 00:00:00 2001 From: Lukas Bachschwell Date: Fri, 15 Jul 2016 13:49:32 +0200 Subject: [PATCH] Pedals lighting up --- PringlesLooper/PringlesLooper.ino | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/PringlesLooper/PringlesLooper.ino b/PringlesLooper/PringlesLooper.ino index 7da3113..aef0b9f 100644 --- a/PringlesLooper/PringlesLooper.ino +++ b/PringlesLooper/PringlesLooper.ino @@ -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(); } // }