Hello
I encountered a problem with the Adafruit_Neopixel library, because reading a pixel (getPixelColor (1)) and rewriting it (.setPixelColor (1, x)) gives the following result.
The pixel changes color and is then stopped.
This would be due to the method of calculating the pixel value with brightness (if the result is not an integer).
It would be preferable for the luminosity of the calculation to be sent to the pixels, if possible within the time given by the electronics.
Herewith, the test loop which verifies the result
uint32_t base = pixel.Color(232, 125, 64);
pixel.setBrightness(254);
pixel.setPixelColor(1,base);
pixel.show();
while(1 == 1) {;
Debseq = millis();
uint32_t Tampon = pixel.getPixelColor(1); // Lit la couleur du dernier Pixel
pixel.setPixelColor(1,Tampon);
pixel.show();
Finseq = millis();
}
Bring the problem back to Adafruit
Thank you