Closed mkpazon closed 2 years ago
Update: Managed to remove the error by
sudo chmod 666 /dev/spidev*
The program is running but the led strip isn't working. I could be making the wrong connections. I'll start debugging hardware.
Got the leds to open up BUT all it does is render white color.
GPIO PIN = 10
Managed to make it work. Read through https://github.com/jgarff/rpi_ws281x and learned that for Raspberry Pi 3 I had to add a couple of configurations:
spidev.bufsiz=32768
to /boot/cmdline.txtcore_freq=250
to /boot/config.txt
I am getting the following error when running the sample code I got from https://github.com/mattjlewis/diozero/blob/main/diozero-ws281x-java/src/main/java/com/diozero/ws281xj/sampleapps/WS281xTest.java
Here is the code I have
build.gradle.kts
WS281xTest.java
Main.kt
I also tried replacing the driver to
new WS281xSpi(0, 8, StripType.WS2812, 64, 1)
but got a different error: