05-14-2018, 10:20 PM
(05-14-2018, 09:53 AM)AnythingIsFine Wrote: @pfeerick:
I edited Leapo's Github repo and edited the library so it considers the offset and now it works, at least on Armbian 5.42 for Rock64.
Here's the edited R64.GPIO python library, if anyone has the time and will, please try it out.
I added function ("offset") which checks the kernel version on the local machine and if it finds that the version is over 4.4.103, it adds the "1000" offset to the pin channel values.
The kernel version 4.4.103 was not randomly chosen as start point for implementing the offset, but rather from a comment I read by user "dontpostalot" in this thread
I have yet to validate if that actual kernel version starts implementing the offset.
Nice solution! I'll try to give this a run sometime this week.