]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/esp8266/pin.py
Cruft removal
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / esp8266 / pin.py
index fd2910cb5b4ee3a51fda22c7b77d171758a3c11c..c37e05382e5f8cd51ff8a56ac019f02cd2e39051 100644 (file)
@@ -12,16 +12,14 @@ GPIO14 = Pin(14)
 GPIO15 = Pin(15)
 GPIO16 = Pin(16)
 TOUT = Pin("TOUT")
-"""
-From introspection of microcontroller.pin on Feather Huzzah running CircuitPython
->>> dir(microcontroller.pin)
-['TOUT', 'XPD_DCDC', 'MTMS', 'MTDI', 'MTCK', 'MTDO', 'GPIO2', 'GPIO0', 'GPIO4', 'SD_DATA_2', 'SD_DATA_3', 'SD_CMD', 'SD_CLK', 'SD_DATA_0', 'SD_DATA_1', 'DVDD', 'U0RXD', 'U0TXD']
->>> dir(board)
-['ADC', 'GPIO16', 'GPIO14', 'SCK', 'GPIO12', 'MISO', 'GPIO13', 'MOSI', 'GPIO15', 'GPIO2', 'GPIO0', 'GPIO4', 'SDA', 'RX', 'TX', 'GPIO5', 'SCL']
-"""
-"""
-class cpu():
-    def frequency(self):
-        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