Happy2013
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

Hello,

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.

Thanks

User avatar
croston
Posts: 723
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool

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”