Hi,
I have RTL8720D and I tried to use some Neopixel with it. Neopixel is WS2812 and I connected it to pin 10. This is the sketch:
#include <Adafruit_NeoPixel.h>
#define PIN 10
Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
strip.setBrightness(50);
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
colorWipe(strip.Color(0, 255, 0), 1000); // Green
//colorWipe(strip.Color(255, 0, 0), 1000); // Green
//colorWipe(strip.Color(0, 0, 255), 1000); // Green
colorWipe(strip.Color(0, 0, 0), 1000); // white
}
// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
delay(wait);
}
}
With this setup, my Neopixel does not work. What am I doing wrong? I use Arduino IDE. I can blink regular LED on that pin. What could be wrong with Neopixel? Should I use some other pin?