I should have been able to use the full color serial LED NeoPixel (ws2812B) on the Raspberry Pi 3B before. I've stumbled after switching to Raspbian (Buster), so make a note of it.
https://learn.adafruit.com/neopixels-on-raspberry-pi/raspberry-pi-wiring Raspberry Pi has a 3.3V signal, Neopixel has a 5V signal How to use 74AHCT125 level converter and how to use diode are introduced. Try using a diode. The signal line is GPIO18 (PWM0) ** Do not power more than a few Neo Pixels from the 5V output of the Raspberry Pi ** If you don't protect it, it will break (broken)
https://github.com/jgarff/rpi_ws281x Userspace Raspberry Pi PWM library for WS281X LEDs
git clone https://github.com/jgarff/rpi_ws281x
Installed because it requires scons (it seems to be a substitute for make)
sudo apt-get install scons
cd rpi_ws281x
scons
~~ should be fine ~~ ~~ An error occurred if ‘makedev’ was not defined ~~ ~~://www.raspberrypi.org/forums/viewtopic.php?t=250220~~
Edit ~~ mailbox.c and add ** \ #include \ <sys / sysmacros.h> ** ~~
~~nano mailbox.c
~~
~~ again ~~
~~ scons
~~ (not needed)
success!
https://github.com/rpi-ws281x/rpi-ws281x-python
Python library wrapping for the rpi-ws281x library
sudo pip3 install rpi_ws281x git clone https://github.com/rpi-ws281x/rpi-ws281x-python cd rpi-ws281x-python/example chmod 755 *.py sudo python3 strandtest.py
Success! (Requires sudo)
Recommended Posts