X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/61d1577ef627c6733b15da390107867ef07216f5..e3b4ffef8a8b1164f9dbe660dd8f8634f48db171:/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 old mode 100644 new mode 100755 index c37e053..5ba9884 --- a/src/adafruit_blinka/microcontroller/esp8266/pin.py +++ b/src/adafruit_blinka/microcontroller/esp8266/pin.py @@ -1,3 +1,5 @@ +"""ESP8266 pin names""" + from microcontroller import Pin GPIO0 = Pin(0) @@ -14,12 +16,14 @@ GPIO16 = Pin(16) TOUT = Pin("TOUT") # ordered as spiId, sckId, mosiId, misoId -spiPorts = ((1, GPIO14, GPIO13, GPIO12)) +spiPorts = (1, GPIO14, GPIO13, GPIO12) # ordered as uartId, txId, rxId uartPorts = ( (0, GPIO1, GPIO3), - # (0, GPIO15, GPIO13) # TODO secondary pins for UART0 configurable from Micropython? How to flag? - (1, GPIO2, None)) + # TODO secondary pins for UART0 configurable from Micropython? How to flag? + # (0, GPIO15, GPIO13) + (1, GPIO2, None), +) -i2cPorts = () \ No newline at end of file +i2cPorts = ()