Hey everybody, does anyody know how to convert this procedure to a read PIN function;
{ Swith SoC pin 17 on: }
gReturnCode := fpsystem('echo "1" > /sys/class/gpio/gpio17/value');
LogMemo.Lines.Add(IntToStr(gReturnCode));
as seen in this wiki:
https://wiki.freepascal.org/Lazarus_on_Raspberry_Pi#Native_hardware_accessi want to use the fpsystem procedure and if you will take a closer look at te website, it is only described to use by a fpopen
Please reply without using hwiringpi, PX,L etc. I would like to use native code.
Greets, Wouter van Wegen
To get more response, this is the project photo:
It is because PXL does not compile on my brand new RPI4, and i want to shift over to native code from here to control upcomming problems...