[fpc-pascal] RaspberryPi GPIO access from multiple applications using /dev/gpiomem?

Bo Berglund bo.berglund at gmail.com
Tue Mar 23 00:27:26 CET 2021


On Mon, 22 Mar 2021 11:25:04 +0100, Bo Berglund via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

>Question:
>---------
>Can two different applications access the (same) GPIO pins without permission
>problems?
>
>In my case I only need read access to the active pins so I can display the state
>in a monitoring application I can watch via VNC. Checking a few times per second
>is enough, I think.
>
>But I don't know if the GPIO pins are protected when they are in use by another
>process...

Now tested and it works fine to "spy" on GPIO pins in use by another
application.

-- 
Bo Berglund
Developer in Sweden



More information about the fpc-pascal mailing list