szafranski/RH-ota

LED: pin 18 needs 'sudo'

szafranski opened this issue · 6 comments

why?

Program needs sudo permissions cause it access physical memory. Walkarounds are:
opening server.py with sudo or changing permissions for server.py to access /dev/mem without sudo.

Reported on rpi_ws2812b GH. Waiting for response

Solutions:
'sudo python server.py' - inconvenient
or
'sudo chmod -R 777 /dev/mem' - dangerous

Consulting with Michael now

User would have to use server as a service or sudo or just pin 10 - it doesn't require sudo since it is SPI pin