@@ -0,0 +1,924 @@
+#Import Libraries%0Aimport os               #Gives Python access to Linux commands%0Aimport time             #Proves time related commands%0Aimport RPi.GPIO as GPIO #Gives Python access to the GPIO pins%0A%0A#Set the GPIO pin naming mode%0AGPIO.setmode(GPIO.BCM)%0AGPIO.setwarnings(False)%0A%0A#Set pin 25 as an input pin%0AButtonPin = 25%0AGPIO.setup(ButtonPin, GPIO.IN)%0A%0Aprint %22------------------%22%0Aprint %22 Button + GPIO %22%0Aprint %22------------------%22%0A%0Aprint GPIO.input(ButtonPin)%0A%0A#The commands indented after this %E2%80%98while%E2%80%99 will be repeated forever%0A#or until %E2%80%98Ctrl+c%E2%80%99 is pressed.%0Awhile True:%0A    #If the button is pressed, ButtonPin will be %E2%80%98false%E2%80%99%0A    if GPIO.input(ButtonPin) == False:%0A        print %22Button Pressed%22%0A        print GPIO.input(ButtonPin)%0A        time.sleep(1) #Sleep for 1 second%0A    else:%0A        os.system('clear') #Clears the screen%0A        print %22Waiting for you to press a button%22%0A%0A    time.sleep(0.5) #Sleep for 0.5 seconds%0A

Create 5-button.py