Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // this does not compile
- #include "FastLED.h"
- FASTLED_USING_NAMESPACE
- #if defined(FASTLED_VERSION) && (FASTLED_VERSION < 3001000)
- #warning "Requires FastLED 3.1 or later; check github for latest code."
- #endif
- #define DATA_PIN_L 14
- #define CLK_PIN_L 12
- #define DATA_PIN_R 13
- #define CLK_PIN_R 15
- #define LED_TYPE APA102
- #define COLOR_ORDER BGR
- #define LED_COUNT 340
- #define LED_COUNT_LEFT 170
- #define LED_COUNT_RIGHT 170
- CRGB leds[LED_COUNT];
- //CRGB LEFT[LED_COUNT_LEFT];
- //CRGB RIGHT[LED_COUNT_RIGHT];
- #define BRIGHTNESS 128
- void setup() {
- delay(1000);
- CLEDController LEFT = FastLED.addLeds<LED_TYPE,DATA_PIN_L,CLK_PIN_L,COLOR_ORDER>(leds, LED_COUNT_LEFT).setCorrection(DirectSunlight);
- CLEDController RIGHT = FastLED.addLeds<LED_TYPE,DATA_PIN_R,CLK_PIN_R,COLOR_ORDER>(LED_COUNT_RIGHT, LED_COUNT).setCorrection(DirectSunlight);
- //CLEDController strip = FastLED.addLeds<WS2812, GRB, 8>(leds, NUM_LEDS);
- //CLEDController sign = FastLED.addLeds<WS2812, GRB, 9>(led_sign, NUM_LED_SIGN);
- FastLED.setBrightness(BRIGHTNESS);
- }
- void loop () {
- LEFT.showLEDs(255);
- RIGHT.showLEDs(128);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement