Building on Rasberry Pi
Closed this issue · 1 comments
bitpow commented
Hi,
I have built c-periphery, lua and lua-periphery on Rasberry Pi OS.
When I try to control the led, using the example in the lua-periphery README, I get the following error message:
Opening LED: opening 'brightness': No such file or directory [errno 2]
Additionally, when I try the GPIO example from the same README, I get the following error:
c-periphery library built without character device GPIO support.
I have built basically everything from scratch on the Rasberry Pi itself.
Is there anything I'm missing, any sanity checks, or steps I can take to avoid these error messages?
Thanks.
bitpow commented
was able to get it working using sudo luarocks install lua-periphery
However, I need to run lua with sudo in order to interface with the gpio. Wondering if there's any workarounds for that.