allebb / pirrot

A radio repeater controller (supporting both simplex and duplex operation modes) for the RaspberryPi.
https://pirrot.hallinet.com
57 stars 13 forks source link

GPIO service class #9

Closed allebb closed 7 years ago

allebb commented 7 years ago

A new GPIO service class should be created to read and write to the GPIO logical/in-memory filesystem to enable class-less access to these pin values.

Great documentation on how this can be achieved can be found at the following URLs:

The service class should also be able to function on other systems that do not run on the RaspberryPi and as such, come packaged with a VFS (virtual filesystem) handler.

allebb commented 7 years ago

I have now decided to instead make this a separate public repository that can be downloaded using Packagist etc.

Full unit tests will also be provided and will use a similar virtual file system to that of this library:- https://github.com/PiPHP/GPIO

allebb commented 7 years ago

This has now been created and can be found here: https://github.com/allebb/gpio