That should be 'run as root', it has to do with permissions, not with location. You just run it with 'sudo' on the command line, e.g.:I have read several posts about wiringpi and how it MUST be run under /root
Code: Select all
sudo myprogramYou can always write it in C to use wiringPifeverish wrote:Thanks. I have already written the application, using Lazarus, except for the small GPIO bit, and will use the buttons etc provided by Lazarus. I think I may have stumbled upon a way to use wiringpi.c If I have, I'll upload details to the projects forum. Meantime, thanks to all who offered help.
I thought you were actually using the FPC wrapper for wiringpc...feverish wrote:Thanks. I have already written the application, using Lazarus, except for the small GPIO bit, and will use the buttons etc provided by Lazarus. I think I may have stumbled upon a way to use wiringpi.c If I have, I'll upload details to the projects forum. Meantime, thanks to all who offered help.