]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/esp8266/pin.py
added support for I2C bus 0,1,2 that where missing for the OPI zero2W implementation
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / esp8266 / pin.py
old mode 100644 (file)
new mode 100755 (executable)
index c37e053..5f57036
@@ -1,4 +1,9 @@
-from microcontroller import Pin
+# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
+"""ESP8266 pin names"""
+
+from ..generic_micropython import Pin
 
 GPIO0 = Pin(0)
 GPIO1 = Pin(1)
@@ -14,12 +19,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 = ()