#9/3,Shree Lakshmi complex,2
Floor,Opp,To Vivekananda Park,Girinagar,Bangalore-560085
This week we are going to see how to control GPIO on BeagleBone Black.This is a quick
start guide for accessing GPIO’s.
Two examples ,one for output(Blinking an LED) and one for input(Pushbutton).Here the instructions are given for Debian and Ubuntu Operating System.Steps for installing Debian Operating System on Black click here.
These steps will work for Ubuntu also.
Initially we have to update the system and install the dependencies for the python library. $ sudo apt-get update $ sudo apt-get install build-essential python-setuptools python-smbus
y $ sudo apt-get install python-dev $ sudo apt-get install python-pip
Install the python library pip command. $ sudo pip install Adafruit_BBIO
Download the following script file run it in your black ,it will automatically install all the necessary dependencies as well as the GPIO library. Click here to download the script file.Then make the file as a executable and run the script. $
sudo chmod a+x gpio.s $ sudo ./gpio.sh