Hi I'm newbie in arduino:) I'm trying to develop yourself:)
I bought RGB diodes aliexpress link . Now I'm playin with it, I have solder 3 of them and connect to arduino uno.
Here is my simple program:
#include <Arduino.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include <Adafruit_GFX.h>
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(3, 1, 6,
NEO_MATRIX_TOP + NEO_MATRIX_RIGHT +
NEO_MATRIX_COLUMNS + NEO_MATRIX_PROGRESSIVE,
NEO_GRB + NEO_KHZ800);
void setup() {
matrix.begin();
matrix.setBrightness(50);
}
void loop() {
matrix.drawFastHLine(0, 0, 3, matrix.Color(255, 255, 255));
matrix.show();
}
Diodes working well but if I set whitecolor - (255, 255, 255), every next diode changing a lite color and blinking. If I set lower brightness eg 20, then changing lolor and flickering it intensifies.
What is a problem? What should I do to diodes will light "stable"?
-------------------------------------EDITED----------------------
I found reason why ther flickering. I put code from loop() into setup() and now it not fickering. But I would like to turn on and off LEDs and make some operations in loop, but then they are flickering. Any idea? Please help