As shown in the above pinout, we will be usingGPIO15to connect the push button andGPIO22to connect a push button. We can use any GPIO pin either as digital input or digital output pins except a few GPIO pins which can be used only as digital input pins for more information about it ...
Our pinout from LESSON 1 shows which pins are suitable for digital reads.Default Pin Configuration for the Beaglebone Black Rev. C. It is the green GPIO pins which we can use for digital reads. In this lesson we will demonstrate the digital read technique using a simple two button circuit....
Arduino 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import Adafruit_BBIO.GPIO as GPIO from time import sleep topButton="P9_11" bottomButton="P9_13" GPIO.setup(topButton, GPIO.IN) GPIO.setup(bottomButton, GPIO.IN) while(1): if GPIO.input(topButton): print "Top Button Pushed" if...