Not long ago i have started my "AMPatio" project - https://github.com/adir-vrd/ampatio
AMPatio is actually a very easy and simple pure Python lib (in its diapers) to control & manipulate IO pins found on most AMLogic based dev boards out there...
From the beginning when Hardkernel 1st published their Odroid C series i was charmed but i didn't have any idea how to program the IO's i wanted to control.
Year ago I encountered a tutorial on how to manipulate the memory by using Python mmap lib & Linux mem device (/dev/mem) which can achieve just that.
for my understanding the direct memory access abilities existed in linux is more than 10 years old.
For now AMPatio is only able to control & manipulate GPIOs quite easily & fast and only with just less than 150 lines of code, but I have put for myself as a target - the need to do more than that.
Future interfaces hoped to be supported are: UART, I2C, SPI, Infrared blaster/encoder, PWM & ADC.
Importantly, in AMPatio lib I took another approche other than finding the GPIO pin number with calculation, check it out you will find it simplified & well organised.
===================================================================================================================
AMPatio running in my case on Odroid-C4 with Archlinux-ARM using the mainline Linux kernel.
Now, this is where i'm asking also for your kind help, by testing AMPatio lib on more then just my Odroid-C4 board.
===================================================================================================================
In great hope that some of you will find it useful & joyable
