@Alexandr-Didenko said in How to control WS281x RGB LED strip?:
I searching in this forum and don't understand.
On the RPI I installed neopixel.
On the Omega2 neopixel don't install.
Omega2 is not a RPi ;-)
But there's a solution, see this post.
As the thread is a bit long with maybe too many details decribing the research and development of that solution, here's a quick summary:
There's a kernel driver called p44-ledchain for driving WS281x ledchains. You can install it as follows:
opkg install --force-depends kmod-p44-ledchain*
And then activate it (this is for up to 200 WS2813 connected to
insmod /lib/modules/4.4.61/p44-ledchain.ko ledchain0=0,200,2
You also need to enable
PWM0 output on
omega2-ctrl gpiomux set pwm0 pwm
Now you can send a string of RGB values, for example:
echo -en '\xFF\xFF\xFF\xFF\x00\x00\x00\xFF\x00\x00\x00\xFF' >/dev/ledchain0
...makes the first LED white (FFFFFF), the second red (FF0000), the third green (00FF00) and the fourth blue (0000FF). These codes are the same as for web colors.
For more info, have a look at the p44-ledchain README and read the original thread with experiences from other users