We have several Ultra Bright 4 Watt Chainable RGBW NeoPixel LED - Cool White - ~6000K (product id:5162) controlled by Arduino uno. But it's kind of randomly blinking even though we set the zero brightness in the loop function. We are confused about that. The code is pasted below.
Code: Select all
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket
#endif
#define LED_PIN 6
#define LED_COUNT 1
#define BRIGHTNESS 50 // Set BRIGHTNESS to about 1/5 (max = 255)
void setup() {
#if defined(__AVR_ATtiny85__) && (F_CPU == 16000000)
clock_prescale_set(clock_div_1);
#endif
strip.begin(); // INITIALIZE NeoPixel strip object (REQUIRED)
strip.show(); // Turn OFF all pixels ASAP
strip.setBrightness(BRIGHTNESS);
}
void loop() {
strip.setPixelColor(0, 0,0,0,0); // Set pixel's color (in RAM)
strip.show(); // Update strip to match
delay(10);
}