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
>>> GPIO.setup(10, GPIO.OUT)
>>>
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:
No problem for setting only one channel:
Thank you!