Skip to content

Commit

Permalink
improved example to simplify the data pin setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Legion2 committed Feb 6, 2019
1 parent 6208ccf commit 28395e1
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
#include <LEDController.h>
#include <FastLED.h>

CRGB leds[CHANNEL_LED_COUNT * 2];
#define NUM_LEDS CHANNEL_LED_COUNT * 2
#define DATA_PIN 2

CRGB leds[NUM_LEDS];

void setup() {
#ifdef DEBUG
Serial.begin(115200);
#endif
FastLED.addLeds<NEOPIXEL, 2>(leds, CHANNEL_LED_COUNT * 2);
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
LEDController.addLeds(0, leds);
LEDController.addLeds(1, &(leds[CHANNEL_LED_COUNT]));
CorsairLightingProtocol.begin();
Expand Down

0 comments on commit 28395e1

Please sign in to comment.