]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Add license header information. Include support for UARt6 and LED pins
authorRyan L <ryestar101@gmail.com>
Sat, 2 Sep 2023 20:10:31 +0000 (21:10 +0100)
committerRyan L <ryestar101@gmail.com>
Sat, 2 Sep 2023 20:10:31 +0000 (21:10 +0100)
src/adafruit_blinka/board/linksprite/__init__.py
src/adafruit_blinka/board/linksprite/pcduino2.py
src/adafruit_blinka/board/linksprite/pcduino3.py

index 333c1b181f2ac71a346555c50c76b6e3916c9ba3..bbc63591e14bb3c1bc46a93bc798e419d565d21a 100644 (file)
@@ -1 +1,4 @@
+# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
 """Boards definition from Linksprite Pcduino based boards"""
index 43bb3bb81d60e9317747b4e0ec7d7d6e081df7fc..2d2839bc1e4b28a8cc1b0d9cb0d10ac5abf864ed 100644 (file)
@@ -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
index e7a7684d5eb5312ef73ca9506ef8aa9523614303..022f403279229caf88012cb7a1277418e2352ba2 100644 (file)
@@ -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