X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/f4f44cf730870773ff87242037bf7fd5f6acd8cd..HEAD:/src/adafruit_blinka/board/feather_huzzah.py diff --git a/src/adafruit_blinka/board/feather_huzzah.py b/src/adafruit_blinka/board/feather_huzzah.py old mode 100644 new mode 100755 index d32bd02..32bbce1 --- a/src/adafruit_blinka/board/feather_huzzah.py +++ b/src/adafruit_blinka/board/feather_huzzah.py @@ -1,29 +1,33 @@ -from adafruit_blinka.microcontroller.esp8266 import pin +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT +"""Pin definitions for the Feather Huzzah.""" -# TODO need equiv of INPUT_PULL_DOWN_16 ? see https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html +from adafruit_blinka.microcontroller.esp8266 import pin -GPIO0= pin.GPIO0 -GPIO1= pin.GPIO1 -GPIO2= pin.GPIO2 -GPIO3= pin.GPIO3 -GPIO4= pin.GPIO4 -GPIO5= pin.GPIO5 -GPIO12= pin.GPIO12 -GPIO13= pin.GPIO13 -GPIO14= pin.GPIO14 -GPIO15= pin.GPIO15 -GPIO16= pin.GPIO16 +# TODO need equiv of INPUT_PULL_DOWN_16 ? +# See https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html -ADC= pin.TOUT +GPIO0 = pin.GPIO0 +GPIO1 = pin.GPIO1 +GPIO2 = pin.GPIO2 +GPIO3 = pin.GPIO3 +GPIO4 = pin.GPIO4 +GPIO5 = pin.GPIO5 +GPIO12 = pin.GPIO12 +GPIO13 = pin.GPIO13 +GPIO14 = pin.GPIO14 +GPIO15 = pin.GPIO15 +GPIO16 = pin.GPIO16 -MISO=GPIO12 -MOSI=GPIO13 -SCK=GPIO14 +ADC = pin.TOUT -RX=GPIO3 -TX=GPIO1 +MISO = GPIO12 +MOSI = GPIO13 +SCK = GPIO14 -SDA=GPIO4 -SCL=GPIO5 +RX = GPIO3 +TX = GPIO1 -['ADC', 'GPIO16', 'GPIO14', 'SCK', 'GPIO12', 'MISO', 'GPIO13', 'MOSI', 'GPIO15', 'GPIO2', 'GPIO0', 'GPIO4', 'SDA', 'RX', 'TX', 'GPIO5', 'SCL'] +SDA = GPIO4 +SCL = GPIO5