[Feb 26] Recalbox beta v3.1- Rock64 |[Feb 26] Recalbox 190222- RockPro64 / Minimal Debian by mrfixit2001 - 190222 - RockPro64 |[Feb 26] Q4OS 2.7-r2 - Pinebook 1080P / Pinebook |[Feb 22] Batocera Linux 5.20-20190121- RockPro64 | [Feb 19] Manjaro KDE 19.02 / Manjaro LXQT 19.02 - Pinebook1080P / Pinebook | [Feb 19] Slackware Aarch64 Miniroot and XFCE 20190201 - RockPro | [Feb 19] Slackware Aarch64 Miniroot and XFCE 20190201 - Rock64

Project Inspiration | Get Started | IRC Logs | Forum Rules/Policy


Python GPIO Library for the Rock64 (R64.GPIO)
#31
I can run under Ubuntu, but can't run the test script under Armbian. Using python3 I get:

Code:
[email protected]:/home/sas# python3 gpio_test.py 
Testing R64.GPIO Module...

Module Variables:
Name           Value
----           -----
GPIO.ROCK      ROCK
GPIO.BOARD     BOARD
GPIO.BCM       BCM
GPIO.OUT       out
GPIO.IN        in
GPIO.HIGH      1
GPIO.LOW       0
GPIO.PUD_UP    0
GPIO.PUD_DOWN  1
GPIO.VERSION   0.6.3
GPIO.RPI_INFO  {'RAM': '1024M', 'PROCESSOR': 'BCM2837', 'TYPE': 'Pi 3 Model B', 'REVISION': 'a22082', 'P1_REVISION': 3, 'MANUFACTURER': 'Embest'}
Error: Unable to export GPIO
Error: Unable to set GPIO direction
Error: Unable to export GPIO
Error: Unable to set GPIO direction

Testing GPIO Input/Output:
You must setup() the GPIO channel ({0} {1}) first
Traceback (most recent call last):
  File "gpio_test.py", line 42, in <module>
    var_gpio_state = GPIO.input(var_gpio_out)                   # Return state of GPIO
  File "/home/sas/R64/_GPIO.py", line 210, in input
    if validate_direction(channel, 'both') == 0:
  File "/home/sas/R64/_GPIO.py", line 118, in validate_direction
    print("You must setup() the GPIO channel ({0} {1}) first").format(gpio_mode, channel)
AttributeError: 'NoneType' object has no attribute 'format'
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question [Help Needed] Vehicle infotainment system using Rock64 fender90 4 286 03-18-2019, 09:48 AM
Last Post: fender90
Sad Bad first experience with rock64. Performs worse than my pi :( ekg 6 667 03-18-2019, 12:28 AM
Last Post: munocat
  Rock64 generally unstable? Sputnik 5 359 03-18-2019, 12:19 AM
Last Post: munocat
  ROCK64 NAS guide midstar 0 82 03-11-2019, 10:40 AM
Last Post: midstar
  When is it possible to purchase "rock64 rev.3" from "PINE STORE" ? t4_4t 2 235 03-09-2019, 05:03 AM
Last Post: t4_4t
  Rock64-4gb,Armbian Debian Stretch: Plex, Radarr, NZBGet and Sickchill WOW Baracuda2 1 143 02-27-2019, 03:34 PM
Last Post: Luke
  ROCK64 RTC Avengerman14s 24 2,020 02-18-2019, 01:59 AM
Last Post: tllim
  Rock64 OMV help needed Osobigg 5 350 02-11-2019, 11:45 AM
Last Post: Osobigg
  C++ GPIO seg fault on Rock64 using Pine64-CPP Jeff R 1 131 02-06-2019, 07:40 PM
Last Post: Jeff R
  Rock64 scipy, numpy, scikit-image, matplotlib issue with pip3 ictele 0 67 02-05-2019, 05:41 PM
Last Post: ictele

Forum Jump:


Users browsing this thread: 1 Guest(s)