All pastes #3007741 Raw Edit

Stuff

public unlisted text v1 · immutable
#3007741 ·published 2015-05-23 02:17 UTC
rendered paste body
  GNU nano 2.2.6             File: buttons3.py                                  

import os, RPi.GPIO as GPIO
from time import sleep

GPIO.setmode(GPIO.BCM)
GPIO.setup(22,GPIO.IN)
GPIO.setup(23,GPIO.IN)
GPIO.setup(24,GPIO.IN)

while True:
   if(GPIO.input(22) == GPIO.LOW):
      print ("22 Input")
      # more code for pin 22 here
   elif(GPIO.input(23) == GPIO.LOW):
      print ("23 Input")
      # more code for pin 23 here
   elif(GPIO.input(24) == GPIO.LOW):
      print ("24 Input")
      # more code for pin 24 here