]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Merge pull request #952 from Core-i99/main
authorMelissa LeBlanc-Williams <melissa@adafruit.com>
Fri, 14 Mar 2025 22:18:36 +0000 (15:18 -0700)
committerGitHub <noreply@github.com>
Fri, 14 Mar 2025 22:18:36 +0000 (15:18 -0700)
Add orangepi 3 LTS support

src/adafruit_blinka/board/orangepi/orangepi3lts.py [new file with mode: 0644]
src/board.py

diff --git a/src/adafruit_blinka/board/orangepi/orangepi3lts.py b/src/adafruit_blinka/board/orangepi/orangepi3lts.py
new file mode 100644 (file)
index 0000000..25ef624
--- /dev/null
@@ -0,0 +1,34 @@
+# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
+"""Pin definitions for the Orange Pi 3 LTS."""
+
+from adafruit_blinka.microcontroller.allwinner.h6 import pin
+
+PD26 = pin.PD26
+SDA = pin.PD26
+PD25 = pin.PD25
+SCL = pin.PD25
+PD22 = pin.PD22
+PL2 = pin.PL2
+PL3 = pin.PL3
+PD24 = pin.PD24
+UART3_RX = pin.PD24
+PD18 = pin.PD18
+PD23 = pin.PD23
+UART3_TX = pin.PD23
+PL10 = pin.PL10
+PD15 = pin.PD15
+PD16 = pin.PD16
+PH5 = pin.PH5
+PH6 = pin.PH6
+PD21 = pin.PD21
+PH4 = pin.PH4
+SPI1_CLK = pin.PH4
+PH3 = pin.PH3
+SPI1_CS = pin.PH3
+PL8 = pin.PL8
+
+SCLK = pin.PH4
+MOSI = pin.PH5
+MISO = pin.PH6
index c9fa46d530a2bcea00cd639e7fdb1d32fb838859..3aa60bd02a1d99bb664ccc0f739cc941e2e864eb 100644 (file)
@@ -131,6 +131,9 @@ elif board_id == ap_board.ORANGE_PI_ZERO_2:
 elif board_id == ap_board.ORANGE_PI_3:
     from adafruit_blinka.board.orangepi.orangepi3 import *
 
+elif board_id == ap_board.ORANGE_PI_3_LTS:
+    from adafruit_blinka.board.orangepi.orangepi3lts import *
+
 elif board_id == ap_board.ORANGE_PI_3B:
     from adafruit_blinka.board.orangepi.orangepi3b import *