购了两块16X16的WS2812“屏”,计划用来装在车后,显示一些信息。
原文在这里:https://tutorials-raspberrypi.com/connect-control-raspberry-pi-ws2812-rgb-led-strips/
Pi GPIO18 连接 WS2812 DIN
sudo apt-get install gcc make build-essential python-dev git scons swig
sudo nano /etc/modprobe.d/snd-blacklist.conf
添加以下:blacklist snd_bcm2835
sudo nano /boot/config.txt
Enable audio (loads snd_bcm2835)
dtparam=audio=on
重启PI
下载库git clone https://github.com/jgarff/rpi_ws281x
进入目录运行 sudo scons
可以使用python,进入python目录
sudo python setup.py build
sudo python setup.py install
测试:sudo nano examples/strandtest.py