]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/esp8266/pin.py
Moved ports declarations into microcontroller.pin package, and used pin references...
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / esp8266 / pin.py
index fd2910cb5b4ee3a51fda22c7b77d171758a3c11c..647ac7512536c2c01c4bbbeae6e36d1cb7effd37 100644 (file)
@@ -25,3 +25,14 @@ class cpu():
         from machine import freq
         return freq()
 """
         from machine import freq
         return freq()
 """
+
+# ordered as spiId, sckId, mosiId, misoId
+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))
+
+i2cPorts = ()
\ No newline at end of file