]> Repositories - Adafruit_Blinka-hackapet.git/blob - src/adafruit_blinka/microcontroller/esp8266/pin.py
Add check to ODroid n2 to make sure i2c matches expected ports
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / esp8266 / pin.py
1 # SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
2 #
3 # SPDX-License-Identifier: MIT
4 """ESP8266 pin names"""
5
6 from ..generic_micropython import Pin
7
8 GPIO0 = Pin(0)
9 GPIO1 = Pin(1)
10 GPIO2 = Pin(2)
11 GPIO3 = Pin(3)
12 GPIO4 = Pin(4)
13 GPIO5 = Pin(5)
14 GPIO12 = Pin(12)
15 GPIO13 = Pin(13)
16 GPIO14 = Pin(14)
17 GPIO15 = Pin(15)
18 GPIO16 = Pin(16)
19 TOUT = Pin("TOUT")
20
21 # ordered as spiId, sckId, mosiId, misoId
22 spiPorts = (1, GPIO14, GPIO13, GPIO12)
23
24 # ordered as uartId, txId, rxId
25 uartPorts = (
26     (0, GPIO1, GPIO3),
27     # TODO secondary pins for UART0 configurable from Micropython? How to flag?
28     # (0, GPIO15, GPIO13)
29     (1, GPIO2, None),
30 )
31
32 i2cPorts = ()