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
  Selling Rock64's dugalbug 6 300 10-19-2019, 12:12 PM
Last Post: dugalbug
Exclamation Rock64 v2 freeze help! JuanDTM 5 214 10-16-2019, 06:37 PM
Last Post: Rocklobster
  Rock64 for video surveillance martinschm 6 435 09-19-2019, 01:56 AM
Last Post: Jozek
  ROCK64 not booting TheGiolly 10 449 09-09-2019, 06:57 AM
Last Post: Rocklobster
  Rock64 v3 - POE P1V 3 566 08-18-2019, 05:51 AM
Last Post: mcerveny
  Rock64 board seems defective, how to confirm? Josk 1 176 08-15-2019, 08:24 PM
Last Post: tllim
  Purchase Rock64 V3? richardk 6 682 08-03-2019, 12:56 PM
Last Post: mcerveny
  Rock64 running OMV, how to setup RTL8812AU WiFi? electrosam 2 207 07-16-2019, 04:03 PM
Last Post: ayufan
  Rock64 random freezes BTB 3 309 07-01-2019, 10:17 AM
Last Post: Luke
Sad Rock64 Seafile Installation klaus_nase 2 230 06-27-2019, 09:11 AM
Last Post: klaus_nase

Forum Jump:


Users browsing this thread: 1 Guest(s)