ws2811_init failed with code -5 (mmap() failed)
bhattpriti opened this issue · 3 comments
bhattpriti commented
Hello,
I am using rpi_ws2812 and just copy past rpi_ws281x-python program to my python program but it is giving me error
ws2811_init failed with code -5 (mmap() failed).
if I commect out
LED_PIN = 10 # GPIO pin connected to the pixels (10 uses SPI /dev/spidev0.0).
LED light stays white and not changing colors.
Please Help.
lbt commented
If you are not using the SPI interface you need to run as root.
bhattpriti commented
Thank you David
Thanks and Regards,
Priti Bhatt
…________________________________
From: David Greaves ***@***.***>
Sent: Sunday, March 14, 2021 12:23 PM
To: rpi-ws281x/rpi-ws281x-python ***@***.***>
Cc: bhattpriti ***@***.***>; Author ***@***.***>
Subject: Re: [rpi-ws281x/rpi-ws281x-python] ws2811_init failed with code -5 (mmap() failed) (#61)
If you are not using the SPI interface you need to run as root.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#61 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJS2YFCPMCC4HU47XJQVOWLTDT5I5ANCNFSM4YNGZ23A>.
bhattpriti commented
If you are not using the SPI interface you need to run as root.