JeetShetty / GreenPiThumb

https://mtlynch.io/greenpithumb/
Apache License 2.0
82 stars 12 forks source link

Add GPIO.setmode #54

Closed JeetShetty closed 7 years ago

JeetShetty commented 7 years ago

Seems to me that we want to use GPIO.BOARD, but you used GPIO.BCM in some of your code. I'm not clear on what each does, though.

mtlynch commented 7 years ago

GPIO.BCM matches the numbers printed on the Raspberry Pi cobbler we use and in Fritzing.

I think the upside of GPIO.BOARD is that it will work across Raspberry Pi versions, but I'd rather sacrifice that to eliminate the confusion of having to keep looking at this diagram to map the board numbers to the board-independent numbers.