08-16-2016, 06:15 AM
(08-10-2016, 04:53 PM)MarkHaysHarris777 Wrote: @DonFL, confirmed:
GPIO.setmode(GPIO.BOARD)
GPIO.setup(40, GPIO.OUT)
... will get an error channel not valid on a Raspberry PI. Either the RPi.GPIO-PineA64 codes were ported from the 26 pin GPIO stuff... or else, this is an over-sight (a bug, for sure).
The work-around (as DonFL has noted) is to code GPIO.setmode(GPIO.BCM). then all of the channels may be setup, with the exception that some of the channels (GPIO04) apparently do not work. Need to dive into the code to find out, because that doesn't make any sense.
This issue has been fixed. Updated code is at the github location: https://github.com/swkim01/RPi.GPIO-PineA64