Hey, fellow Omega programmers
I've been working on a PCD8544 driver last few days and thus I had to control GPIO pins from inside my C++ application - I didn't found any generic library for Omega 2 and so I've decided to roll my own one:
https://github.com/Patryk27/Omega2-GPIO
I've taken the mechanics from the fast-gpio
tool and refactored it so it was down to two files and Arduino
-like nomeclature (it has pinMode
, digitalWrite
, digitalRead
and shiftOut
).
I hope it gets useful for someone
I've included one simple example there and maybe tomorrow (depending on my free time) I'll post my PCD8544 driver - it will most likely be more useful than just this GPIO toggling tool, but it's always something to start with.