]> Repositories - Adafruit_Blinka-hackapet.git/blob - src/adafruit_blinka/microcontroller/esp8266/pin.py
Cruft removal
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / esp8266 / pin.py
1 from microcontroller import Pin
2
3 GPIO0 = Pin(0)
4 GPIO1 = Pin(1)
5 GPIO2 = Pin(2)
6 GPIO3 = Pin(3)
7 GPIO4 = Pin(4)
8 GPIO5 = Pin(5)
9 GPIO12 = Pin(12)
10 GPIO13 = Pin(13)
11 GPIO14 = Pin(14)
12 GPIO15 = Pin(15)
13 GPIO16 = Pin(16)
14 TOUT = Pin("TOUT")
15
16 # ordered as spiId, sckId, mosiId, misoId
17 spiPorts = ((1, GPIO14, GPIO13, GPIO12))
18
19 # ordered as uartId, txId, rxId
20 uartPorts = (
21     (0, GPIO1, GPIO3),
22     # (0, GPIO15, GPIO13) # TODO secondary pins for UART0 configurable from Micropython? How to flag?
23     (1, GPIO2, None))
24
25 i2cPorts = ()