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