Python GPIO Library for the Rock64 (R64.GPIO)
#20
(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.
  Reply


Messages In This Thread
RE: Python GPIO Library for the Rock64 (R64.GPIO) - by pfeerick - 05-14-2018, 10:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 board not working, no HDMI no Ethernet. EDited 3 1,904 01-17-2023, 02:31 PM
Last Post: Flagtrax
  How well does Rock64 deal with HDR and Atmos on Kodi? drvlikhell 2 358 12-16-2022, 09:51 PM
Last Post: drvlikhell
  ROCK64 v3 can it boot from USB? Tsagualsa 4 404 11-29-2022, 11:31 AM
Last Post: Macgyver
  rock64 v3 spiflash Macgyver 0 170 11-28-2022, 02:18 PM
Last Post: Macgyver
  OpenWRT on the Rock64 CanadianBacon 9 3,469 11-05-2022, 03:07 PM
Last Post: wilsonYan
  my rock64 dosen't work rookie_267 0 351 10-07-2022, 07:50 PM
Last Post: rookie_267
  Rock64 u-boot for eMMC Build Error mexicanflyer 0 411 09-18-2022, 02:29 PM
Last Post: mexicanflyer
  ROCK64 - Not start mathieu 0 607 07-11-2022, 03:49 AM
Last Post: mathieu
  Rock64 bricked shawwwn 6 3,404 01-29-2022, 05:49 AM
Last Post: shawwwn
  Rock64 <--> Rock64 Serial Connection mark1250 1 1,363 12-23-2021, 09:27 PM
Last Post: barray

Forum Jump:


Users browsing this thread: 1 Guest(s)