From bd21a68453ae6282b51fab1d42233081fc4f965c Mon Sep 17 00:00:00 2001 From: Ryan L Date: Sat, 2 Sep 2023 21:10:31 +0100 Subject: [PATCH] Add license header information. Include support for UARt6 and LED pins --- .../board/linksprite/__init__.py | 3 +++ .../board/linksprite/pcduino2.py | 21 +++++++++++++++---- .../board/linksprite/pcduino3.py | 21 ++++++++++++------- 3 files changed, 34 insertions(+), 11 deletions(-) diff --git a/src/adafruit_blinka/board/linksprite/__init__.py b/src/adafruit_blinka/board/linksprite/__init__.py index 333c1b1..bbc6359 100644 --- a/src/adafruit_blinka/board/linksprite/__init__.py +++ b/src/adafruit_blinka/board/linksprite/__init__.py @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT """Boards definition from Linksprite Pcduino based boards""" diff --git a/src/adafruit_blinka/board/linksprite/pcduino2.py b/src/adafruit_blinka/board/linksprite/pcduino2.py index 43bb3bb..2d2839b 100644 --- a/src/adafruit_blinka/board/linksprite/pcduino2.py +++ b/src/adafruit_blinka/board/linksprite/pcduino2.py @@ -1,6 +1,12 @@ +# SPDX-FileCopyrightText: 2023 Ryzer58 +# +# SPDX-License-Identifier: MIT """Pin definitions for the Pcduino2.""" from adafruit_blinka.microcontroller.allwinner.a20 import pin +# The Pcduino 2 uses the Allwinner A10 which is a pin compatible predecessor to +# the A20. Unlike most boards it follows an Arduino form factor. + # J11 Header D0 = pin.PI19 D1 = pin.PI18 @@ -22,7 +28,9 @@ SDA = pin.PB21 SCL = pin.PB20 # J9 Header -# A0 & A1 are LRADC pins with only 6-bit resolution and unlike other pins are only limited to 2v +# LRADC pins only have a resolution of 6 bits so not really worth using +# A0 = LRADC0 +# A1 = LRADC1 A2 = pin.XP_TP A3 = pin.XN_TP A4 = pin.YP_TP @@ -35,7 +43,6 @@ MOSI = D11 MISO = D12 CS = D10 - # P6 Header D22 = pin.PC20 SCLK2 = D22 @@ -57,11 +64,17 @@ UART2_TX = D1 UART2_RX = D0 UART5_TX = D3 UART5_RX = D2 +UART6_TX = D11 +UART6_RX = D12 PWM0 = D5 PWM1 = D6 -# Misc -BACK_SW = pin.PH17 # Three buttons featured on the board +# On board buttons +BACK_SW = pin.PH17 HOME_SW = pin.PH18 MENU_SW = pin.PH19 + +# On board LEDs +LED_TX = pin.PH15 +LED_RX = pin.PH16 diff --git a/src/adafruit_blinka/board/linksprite/pcduino3.py b/src/adafruit_blinka/board/linksprite/pcduino3.py index e7a7684..022f403 100644 --- a/src/adafruit_blinka/board/linksprite/pcduino3.py +++ b/src/adafruit_blinka/board/linksprite/pcduino3.py @@ -1,9 +1,9 @@ +# SPDX-FileCopyrightText: 2023 Ryzer58 +# +# SPDX-License-Identifier: MIT """Pin definitions for the Pcduino3.""" from adafruit_blinka.microcontroller.allwinner.a20 import pin -# Pin wise this is the same as the Pcduino2 but features a daul core A20 -# # rather than a single core A10 - # J11 Header D0 = pin.PI19 D1 = pin.PI18 @@ -25,7 +25,9 @@ SDA = pin.PB21 SCL = pin.PB20 # J9 Header -# A0 & A1 are LRADC pins with only 6-bit resolution and unlike other pins are only limited to 2v +# LRADC pins only have a resolution of 6 bits so not really worth using +# A0 = LRADC0 +# A1 = LRADC1 A2 = pin.XP_TP A3 = pin.XN_TP A4 = pin.YP_TP @@ -38,7 +40,6 @@ MOSI = D11 MISO = D12 CS = D10 - # P6 Header D22 = pin.PC20 SCLK2 = D22 @@ -60,11 +61,17 @@ UART2_TX = D1 UART2_RX = D0 UART5_TX = D3 UART5_RX = D2 +UART6_TX = D11 +UART6_RX = D12 PWM0 = D5 PWM1 = D6 -# Misc -BACK_SW = pin.PH17 # Three buttons featured on the board +# On board buttons +BACK_SW = pin.PH17 HOME_SW = pin.PH18 MENU_SW = pin.PH19 + +# On board LEDs +LED_TX = pin.PH15 +LED_RX = pin.PH16 -- 2.49.0