Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup more than one channel doesn't work #7

Open
Stemby opened this issue Mar 29, 2015 · 1 comment
Open

Setup more than one channel doesn't work #7

Stemby opened this issue Mar 29, 2015 · 1 comment

Comments

@Stemby
Copy link

Stemby commented Mar 29, 2015

Since release 0.5.8 I should be able to set more than one channel per call:
http://sourceforge.net/p/raspberry-gpio-python/wiki/BasicUsage/

On my Banana Pi, by using this fork, the new syntax doesn't work:

Python 3.2.3 (default, Feb 20 2013, 22:32:37) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import RPi.GPIO as GPIO
BAPI: revision(1)
>>> GPIO.VERSION
'0.5.8'
>>> GPIO.setmode(GPIO.BCM)
>>> chan_list = [10, 23, 24, 9, 11]
>>> GPIO.setup(chan_list, GPIO.OUT)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: an integer is required

No problem for setting only one channel:

>>> GPIO.setup(10, GPIO.OUT)
>>> 

Thank you!

@Stemby
Copy link
Author

Stemby commented Mar 29, 2015

I can't find this commit in your fork...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant