From: s-light Date: Mon, 1 Apr 2019 19:00:11 +0000 (+0200) Subject: [examples] added python3 env X-Git-Tag: 1.3.0~3^2~10 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/97c59ec5803924c104ef492b538854a8e87931c1?hp=498d8fb1e9d1d3f45e570571d71e4a1cfc6f942d [examples] added python3 env --- diff --git a/examples/bbb_digitalio.py b/examples/bbb_digitalio.py index 25496d5..9d8af71 100755 --- a/examples/bbb_digitalio.py +++ b/examples/bbb_digitalio.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + # Example of blinking LED on BeagleBone Black # https://www.adafruit.com/product/1876 # @@ -5,6 +8,16 @@ # 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 diff --git a/examples/pb_digitalio.py b/examples/pb_digitalio.py index 884fc00..0eb3a2b 100755 --- a/examples/pb_digitalio.py +++ b/examples/pb_digitalio.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + # Example of blinking LED on PocketBeagle # https://www.adafruit.com/product/4179 #