Skip to content

Instantly share code, notes, and snippets.

@ansarid
Last active October 30, 2019 16:20
Show Gist options
  • Save ansarid/506f114fb5990f62378d05482cfbc137 to your computer and use it in GitHub Desktop.
Save ansarid/506f114fb5990f62378d05482cfbc137 to your computer and use it in GitHub Desktop.
Programming GPIO on the BeagleBone Blue

Controlling GPIO on the Beaglebone Blue.

Intro

  1. Start by installing the Adafruit_BBIO library.
sudo apt-get update
sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus -y
sudo pip3 install Adafruit_BBIO

BeagleBone Blue GPIO Pins Table

GPIO

import Adafruit_BBIO.GPIO as GPIO
 
GPIO.setup("P8_10", GPIO.OUT)
GPIO.output("P8_10", GPIO.HIGH)
GPIO.cleanup()

PWM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment