Menu

#69 Model B+: invalid channel for pins greater 26

Done
None
Critical
Defect
2015-02-20
2014-07-22
kofler
No

with model b+, I can only address the new GPIO pins with gpio.setmode(gpio.BCM). If I use gpio.setmode(gpio.BOARD) instead, I get The channel sent is invalid on a Raspberry Pi errors for pin numbers greater 26.

Tested with 0.5.6 today (Jul 22nd)

1
2
3
4
5
6
7
8
#!/usr/bin/python3
try:
  import RPi.GPIO as gpio, sys, time
  gpio.setmode(gpio.BOARD)      # use P1 pin numbers
  gpio.setup(pinLed, gpio.OUT, 37)
except RuntimeError:
  print("use sudo!")
  sys.exit()

Discussion

  • Ben Croston

    Ben Croston - 2014-07-22

    Will investigate as soon as I get the chance - probably tomorrow

     
  • Ben Croston

    Ben Croston - 2014-07-22
    • assigned_to: Ben Croston
    • Type: Patch --> Defect
     
  • kofler

    kofler - 2014-07-22

    my listing is wrong, corrected here

    1
    2
    3
    4
    5
    6
    7
    8
    #!/usr/bin/python3
    try:
      import RPi.GPIO as gpio, sys, time
      gpio.setmode(gpio.BOARD)      # use P1 pin numbers
      gpio.setup(37, gpio.OUT, 0)
    except RuntimeError:
      print("use sudo!")
      sys.exit()
    
     
  • Ben Croston

    Ben Croston - 2014-07-23

    Fix now in source code repository - will be in next release

     
  • Ben Croston

    Ben Croston - 2014-07-28
    • status: New --> Started
    • Priority: Medium --> Critical
     
  • Andrew Scheller

    Andrew Scheller - 2014-09-01

    Any idea when a release with this fix included will be pushed out?
    I'd imagine there's probably quite a few B+ owners by now...

     
  • Ben Croston

    Ben Croston - 2014-09-13

    Fixed in release 0.5.7

     
  • Ben Croston

    Ben Croston - 2014-09-13
    • status: Started --> Done
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.