Noob Question: Lazarus program on Raspberry Pi B+ don't work with GPIO lazarus / 13-General ---------------------------------------------------------------------- alex1991 · 2016-10-20 06:37 Hello, Lazarus community! Sorry for my English. I try start work with Raspberry Pi. I try easy program for example. Switching a device via the GPIO port http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi but I have a problem((( Preparing procedure (TForm1.FormActivate(Sender: TObject); ) return 2 0 -1 -1 -1 means write error. each click ToggleBox return -1 -1 I try fpgeterrno fpgeterrno return 9 Of course, the LED does not light up. What does it mean? And how to solve this problem? Perhaps I need to install some library? Board: Raspberry Pi B+ OS: raspbian ---------------------------------------------------------------------- avra · 2016-10-20 07:23 Read wiki carefully: QuoteThe code requires to be run as root, i.e. either from a root account (not recommended) or via su.QuoteThis program has again to be executed as root.QuoteThis program has to be executed with root privileges, too. If you don't want your program to run as root then look at this: https://www.raspberrypi.org/forums/viewtopic.php?p=131069