Closed OrangeTux closed 7 years ago
Thank you for raising this issue. TBH, this package is dead, I haven't updated it in years. I recommend you fork it and make any changes you see necessary.
I saw that it hasn't been updated for a while. But the concepts of GPIO are pretty solid as well, so I think this package is still usefull.
I'll fork it and do the changes.
I want to build a package on top of GPIO to interact with Atmel GPIO Controller.
This controller exposes the pins at a slightly different base path. Instead of
/sys/class/gpio/gpioN
the pins are exposed like this/sys/class/gpio/pioAN
till/sys/class/gpio/EN
.Currently it's hard to write a package for this controller because the
pin
type is not exported. I propose to export thepin
type. Then it's possible to write your ownNewPin()
andexpose()
functions to build support for GPIO controllers. Below I've put some code to demonstrate how exporting thepin
struct could help to create support for GPIO controllers.