Adafruit_Neopixel library problem
hello
i encountered problem adafruit_neopixel library, because reading pixel (getpixelcolor (1)) , rewriting (.setpixelcolor (1, x)) gives following result.
the pixel changes color , stopped.
this due method of calculating pixel value brightness (if result not integer).
it preferable luminosity of calculation sent pixels, if possible within time given electronics.
herewith, test loop verifies 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 problem adafruit
thank you
quote
bring problem adafruityou need that. not adafruit forum. have one.
Arduino Forum > Using Arduino > Programming Questions > Adafruit_Neopixel library problem
arduino
Comments
Post a Comment