X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/a3770186a94117be56a8d9a8038a2d540bd2884c..e4139a83d336ab86f6185b0e5639c525d3d56bb2:/src/adafruit_blinka/microcontroller/esp8266/pin.py diff --git a/src/adafruit_blinka/microcontroller/esp8266/pin.py b/src/adafruit_blinka/microcontroller/esp8266/pin.py index 9dc856f..5f57036 100755 --- a/src/adafruit_blinka/microcontroller/esp8266/pin.py +++ b/src/adafruit_blinka/microcontroller/esp8266/pin.py @@ -1,6 +1,9 @@ +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT """ESP8266 pin names""" -from microcontroller import Pin +from ..generic_micropython import Pin GPIO0 = Pin(0) GPIO1 = Pin(1) @@ -16,14 +19,14 @@ GPIO16 = Pin(16) TOUT = Pin("TOUT") # ordered as spiId, sckId, mosiId, misoId -SPI_PORTS = (1, GPIO14, GPIO13, GPIO12) +spiPorts = (1, GPIO14, GPIO13, GPIO12) # ordered as uartId, txId, rxId -UART_PORTS = ( +uartPorts = ( (0, GPIO1, GPIO3), # TODO secondary pins for UART0 configurable from Micropython? How to flag? # (0, GPIO15, GPIO13) (1, GPIO2, None), ) -I2C_PORTS = () +i2cPorts = ()