Hello Forum,
I’m hoping that you can help me with a minor annoyance. I created an entry hall lamp that is comprised of 9 RGB lighted columns. I’m using a Huzzah ESP8266 multiplexing 9ea. R3 STM32 AVR
I’m also controlling various modes via Blynk that gradually blend complimentary colors every 20 seconds or so etc.
Anyway, the default mode is a warm white and the idea is that when you turn on the light switch the light gradually fades up to warm white full bright. The annoyance is that before this occurs and when the lamp (arduino is powered) there is a brief flash of full bright white (see video below). I obviously do not want this to occur but I don’t know how I can avoid this. Perhaps this is just the behavior of the STM32 AVR when it receives power but I’m not sure. I’m wondering if there is anything I can do in my Sketch (posted below) to prevent this.
I’m not sure what happens initially with the TX and RX pins when Arduino is power up? Are they sending an initial signal that causes this flash? Anyway, anyone that has had experience with driving RGB Lens with the STM32 AVR and has a hunch how to avoid this - would appreciate hearing from you.
thanks in advance
Mark
Looks like my sketch is too big to post here so here’s a link to it if you’re interested:
Here is partial sketch:
void setup()
{
FastLED.addLeds<P9813, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
//FastLED.clear(); blanking to remove flashing affect when powered up?
//FastLED.show();
for ( int i = 0; i < 256; i++) { // fade up and set all LEDs to warm white
leds[0] = CHSV(55, 157, i); //custom balanced color for individual flutes
leds[2] = CHSV(55, 157, i);
leds[3] = CHSV(55, 157, i);
leds[4] = CHSV(55, 157, i);
leds[5] = CHSV(55, 157, i);
leds[6] = CHSV(55, 157, i);
leds[1] = CHSV(44, 157, i);
leds[7] = CHSV(44, 157, i);
leds[8] = CHSV(44, 157, i);
FastLED.show();
FastLED.delay(10);
}
for (int i = 0; i < NUM_LEDS; i++ ) { //set initial color pair for all LEDs
LEDchannelinfo[i].colorA = CRGB::OrangeRed; // CRGB::Orange;
LEDchannelinfo[i].currentcolorA = CRGB::OrangeRed; // CRGB::Orange;
LEDchannelinfo[i].colorB = CRGB::Aqua; // CRGB::BlueViolet;
LEDchannelinfo[i].currentcolorB = CRGB::Aqua; // CRGB::BlueViolet;
LEDchannelinfo[i].toggle = 0;
}
Blynk.begin(auth, ssid, pass);
}/code]