Posts: 25
Joined: Mon Feb 11, 2013 2:26 pm

Difference between GPIO.setmode(BCM) and GPIO.setmode(BOARD)

Mon Feb 18, 2013 11:26 pm


I am just wondering if someone can explain to me the differences between the two modes stated above, I've looked online and can't find anything online that explains the difference, if there is any at all. I am using the RPi Model B.


User avatar
Posts: 667
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
Contact: Website

Re: Difference between GPIO.setmode(BCM) and GPIO.setmode(BO

Mon Feb 18, 2013 11:35 pm

It tells the library which pin nunbering system you are going to use. BOARD signifies using the physical pin numbers on the RPi P1 connector. BCM signifies the Broadcom SOC channel designation. One word of warning - the BCM channels moved around a little between revision 1 and revision 2 of the Raspberry Pi board. The BOARD numbering system stays working between board revisions.

Return to “Python”

Who is online

Users browsing this forum: Google [Bot] and 10 guests