colinodowd
Member
Can anyone help me get this code working? This code is working on the Arduino but not transitioning to the Teensy.
I am trying to illuminate 3 LEDs on the WS2812B with my Teensy 3.2.
I am trying to illuminate 3 LEDs on the WS2812B with my Teensy 3.2.
Code:
#include <Adafruit_NeoPixel.h>
#define LED_PIN 3
#define LED_COUNT 3
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);
void colorWipe(uint32_t color, int wait) {
for(int i=0; i<strip.numPixels(); i++) { // For each pixel in strip...
strip.setPixelColor(i, color); // Set pixel's color (in RAM)
strip.show(); // Update strip to match
}
}
void setup() {
}
void loop() {
colorWipe(strip.Color(0, 255, 0), 0); // Green
}