Hello,.
I am trying to replace output pins and put neopixels ws2812b..
Got this code
#include <FastLED.h>
#include <Control_Surface.h>
USBMIDI_Interface usbmidi;
#define NUM_LEDS 8
#define DATA_PIN 15
CRGB leds[NUM_LEDS];
Bank<8> bankpotspedal(4); /bank named bankpotspedal,4 values and 8 bank positions
Bankable::CCPotentiometer potspedal[] = //input object, CCpotentiometer::bankable in "bankpotspedal" bank, PIN
24 and CC 1 address. Will increase or decrease 4 values each
bank position.
{
{bankpotspedal, 24, 1},
{bankpotspedal, 25, 3},
{bankpotspedal, 26, 4},
};
CCPotentiometer potspedal2 [] =
{
{22, 115}, // input object, CCPotentiometer and named "potspedal2",Pin 22 and 115 CC MIDI address
{23, 2}, // input object, CCPotentiometer and named "potspedal2",Pin 23 and 2 CC MIDI address
};
IncrementDecrementSelectorLEDs<8> bankSelector =
{
bankpotspedal, //bank name
{11, 12}, // button pins
{27, 28, 29, 30, 31, 32, 33, 34}, // LED pins
};
void setup()
{
Control_Surface.begin();
FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
FastLED.setBrightness(50);
}
void loop()
{
Control_Surface.loop();
}
I don´t know where to get info..
I want to replace OUTPUT pins {27, 28, 29, 30, 31, 32, 33, 34} from incrementdecrementselectorleds..
and change it to neopixels (for example...pin 27 will be neopixel(0) ; pin 28 will be neopixel (1),and so on..
Thanks