Skip to content

Setup more than one channel doesn't work #7

@Stemby

Description

@Stemby

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions