Open guysoft opened 1 week ago
Ok I managed to figure that ws2812-uart-gxl-aml6.ini
means it sends the data on UART, and that the PHP is actually used for calculations.
In order to get UART6 to work you need to run:
sudo ldto enable uarta-clk81
Then the TX pin of the UART is used to send the data (in this case on the Le Potato its pin 8, just after the VCC,VCC,GND on the GPIO pinnout).
However with a short strip it just displays a lot bright nearly-white colors, I am not sure how to program anything of my own on it.
The script is run using:
bash -x ./run.sh ./config/ws2812-uart-gxl-aml8.ini
You need a level shifter with a schmitt trigger. You need to specify the LED matrix dimensions and traversal pattern. Then you pass an RGB buffer into the LED program, eg. /dev/fb0 or one of the example generators.
It might be that the LEDs I am using don't need it. It seems to be driving them fine. Just really really fast. If I add a sleep at the end of the loop here (1 sec): https://github.com/libre-computer-project/libretech-saled-light/blob/master/gen/rgb-bg-step#L58
I get this behavior, its sending the correct color code:
He, Assuming you have an LED connected to PWM port 12. or to anything really - how do you use this library?