Adafruit led badge
Setup the pin for output and write GPIO.HIGH or GPIO.LOW:: import Adafruit_BBIO.GPIO as GPIO They have a different path in the /sys/ filesystem.
On-board LEDs (USR0-USR3) are handled by LED class driver rather than the GPIO pin driver. Or you can use 1 or 0.:: import Adafruit_BBIO.GPIO as GPIO Setup the pin for output, and write GPIO.HIGH or GPIO.LOW. You can also refer to the pin names:: tup("GPIO0_26", GPIO.OUT) Import the library, and setup as GPIO.OUT or GPIO.IN:: import Adafruit_BBIO.GPIO as GPIO P9_14 Mode: gpio Direction: in Value: config-pin P9_14 config-pin -q P9_14 config-pin -q P9_14ĭefault gpio gpio_pu gpio_pd config-pin P9_14 config-pin -q P9_14 config-pinĬonfig-pin is now used on the official Debian Jessie and Stretch images to control pin mode (e.g. Refer to pins_t table in common.c all the pin labels. Please note that there is no '0' prefix for the pin numbers. Using the library is very similar to the excellent RPi.GPIO library used on the Raspberry Pi.
#Adafruit led badge install
Upgrade Adafruit_BBIO to latest version on PyPI: sudo pip3 install -upgrade Adafruit_BBIO Git clone git:///adafruit/adafruit-beaglebone-io-python.git Sudo apt-get install build-essential python3-dev python3-pip -y Note: Follow the instructions on to get connected to the Internet New versions of Adafruit_BBIO may break backwards compatibility. Currently recommended image: Debian 10.3 "Buster" IoT () (default kernel is 4.19.x-ti)Īdafruit_BBIO supports Linux kernels 3.8 through 4.19.It is recommended to use an official Debian image Adafruit BBIO is an API to enable GPIO, PWM, ADC, UART, SPI and eQEP (Quadrature Encoder) hardware access from Python applications running on the Beaglebone.