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


Messages In This Thread
RE: Python GPIO Library for the Rock64 (R64.GPIO) - by AnythingIsFine - 05-14-2018, 09:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 v2.0 u-boot SPI issues ju0n 0 844 07-05-2026, 11:02 AM
Last Post: ju0n
  Disable MicroSD reader for extra GPIO mxruben 0 12,588 07-27-2024, 10:08 PM
Last Post: mxruben
  Rock64 No Audio @ Debian 12 dmitrymyadzelets 2 6,181 04-08-2024, 06:47 AM
Last Post: dmitrymyadzelets
  OpenWRT on the Rock64 CanadianBacon 14 28,712 04-03-2024, 08:48 AM
Last Post: helpmerock
  Rock64 bricked shawwwn 7 16,938 03-17-2024, 12:22 PM
Last Post: dmitrymyadzelets
  Rock64 won't boot luminosity7 10 18,931 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 4,896 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  How well does Rock64 deal with HDR and Atmos on Kodi? drvlikhell 3 10,015 04-29-2023, 04:24 AM
Last Post: newestssd
  Rock64 board not working, no HDMI no Ethernet. EDited 3 11,018 01-17-2023, 02:31 PM
Last Post: Flagtrax
  ROCK64 v3 can it boot from USB? Tsagualsa 4 10,417 11-29-2022, 11:31 AM
Last Post: Macgyver

Forum Jump:


Users browsing this thread: 1 Guest(s)