Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No usage instructions #2

Open
guysoft opened this issue Oct 12, 2024 · 2 comments
Open

No usage instructions #2

guysoft opened this issue Oct 12, 2024 · 2 comments

Comments

@guysoft
Copy link

guysoft commented Oct 12, 2024

He,
Assuming you have an LED connected to PWM port 12. or to anything really - how do you use this library?

@guysoft
Copy link
Author

guysoft commented Oct 13, 2024

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

@dsx724
Copy link
Contributor

dsx724 commented Oct 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants