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
#32
Heads up: I'm not dead, and I'm actively working on this library again.

Just updated with bug fixes:
1. Improved GPIO.input compatibility (now returns an int rather than a string).
2. Fixed Python3 compatibility.
3. Updated install instructions in the Github wiki.

I'm working on RockPro64 support now.
  Reply
#33
(05-06-2019, 11:17 AM)Leapo Wrote: Heads up: I'm not dead, and I'm actively working on this library again.

Just updated with bug fixes:
1. Improved GPIO.input compatibility (now returns an int rather than a string).
2. Fixed Python3 compatibility.
3. Updated install instructions in the Github wiki.

I'm working on RockPro64 support now.

Appreciate and thanks on working at ROCKPro64 support. Please PM your shipping address (include phone number for shipping purpose), I will send a Rock64 v3 SBC to you.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Rock64 running OMV, how to setup RTL8812AU WiFi? electrosam 2 71 07-16-2019, 04:03 PM
Last Post: ayufan
  Rock64 for video surveillance martinschm 3 128 07-06-2019, 03:26 AM
Last Post: martinschm
  Rock64 random freezes BTB 3 147 07-01-2019, 10:17 AM
Last Post: Luke
  Purchase Rock64 V3? richardk 3 189 06-28-2019, 05:04 PM
Last Post: Luke
Sad Rock64 Seafile Installation klaus_nase 2 100 06-27-2019, 09:11 AM
Last Post: klaus_nase
  rock64, compile problems "illegal instruction", "memory fault" -> ddr_333Mhz? hunderteins 5 325 06-22-2019, 12:36 PM
Last Post: redfish
  Another non-booting ROCK64 SuburbanDad 13 554 06-19-2019, 01:48 AM
Last Post: mcerveny
  Plastic storage box for Rock64 matwey 1 87 06-18-2019, 10:56 PM
Last Post: tllim
  Rock64 v2 network issues alephnull 1 159 06-07-2019, 03:30 PM
Last Post: alephnull
  Rock64 v3 - POE P1V 1 171 06-07-2019, 12:24 AM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)