There is no USPS pickup on Monday Feb 15th, 2016 because of President's Day. USPS orders placed after 11am EST Fri February 12th will go out Tuesday February 16. UPS orders will ship as normal.

February 1, 2013 AT 3:00 am

Raspberry Pi GPIO Resource #piday #raspberrypi @Raspberry_Pi

Diagram includes BCM GPIO references (GPIO.BCM), common functions, Header GPIO references, and Pin numbers (GPIO.BOARD)

From Meltwater’s Raspberry Pi Hardware:

Now from using different languages I’ve grown accustomed to using the BCM references for the GPIO pins.  However as some of you may know, these differ slightly between Rev1 and Rev2 of the boards so it is important to ensure you code matches and is easily adapted for the board you are using.

Diagram (above) includes BCM GPIO references (GPIO.BCM), common functions, Header GPIO references, and Pin numbers (GPIO.BOARD). An easy solution is simply to use a define for each and edit the code accordingly.  But for python I’d often heard it suggested to detect the revision of the board, which seems sensible to me.

Well, to test it, I made a simple script. (I did consider using multiple lists, iterating through them and tab formatting into tables etc). Just remember RPi.GPIO will require you to run as a super user (sudo python gpiopins.py)….

Read more.


Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!


Maker Business — Amazon may take on Alibaba?

Wearables — Enclosures help fight body humidity in costumes

Electronics — Staple Jumpers

Biohacking — “Health And Fitness Data Is Useless”

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.