Raspberry Pi – Getting inputs from buttons…

Here is another Raspberry Pi GPIO tutorial… This tutorial builds on my previous 2 tutorials available to view via my Channel. In this tutorial you will learn how to get an input from a simple button.


Commands used:

To change directory – cd /****/*****/*****/

To enable your python program – sudo python yourprogram.py

Code write up in this forum post: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=37&t=33020&p=282912#p282912

Please subscribe and tell your friends of my videos! Feel free to comment on what you would like me to do next or if you have any problems!

The Raspberry Pi Guy


One comment on “Raspberry Pi – Getting inputs from buttons…
  1. Bob Morrison says:

    One minor detail which could get people new to this into trouble. The normal convention is to use black for ground and red for the + supply. The habit to use red and black this way should be developed early. Except for that, this was an excellent tutorial. Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.