X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/fee3157567997816ce2152ec903ab11894473e20..refs/heads/use-pi5-pio-neopixel:/examples/bbb_digitalio.py diff --git a/examples/bbb_digitalio.py b/examples/bbb_digitalio.py old mode 100644 new mode 100755 index a595710..8cb7c64 --- a/examples/bbb_digitalio.py +++ b/examples/bbb_digitalio.py @@ -1,10 +1,27 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT + # Example of blinking LED on BeagleBone Black # https://www.adafruit.com/product/1876 # -# Wire the circuit as follows: +# Wire the circuit as follows: # 1) connect anode (+) lead of LED to P9.12 pin # 2) connect cathode (-) lead to 1K Ohm resistor # 3) connect that 1K Ohm resistor to DGND (P9.1) +# +# NOTE: the pin mode can be verified with the command line +# utility config-pin on the BeagleBoard.org Debian image +# +# To verify the pin is in GPIO mode: +# debian@beaglebone:~$ config-pin -q p9.12 +# P9_12 Mode: gpio Direction: out Value: 0 +# +# To set pin to GPIO mode: +# $ config-pin p9.12 gpio import time import board