Skip to content

Commit 9e6a4f0

Browse files
committed
Add orangepi 3 LTS support
1 parent 58a8e17 commit 9e6a4f0

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
"""Pin definitions for the Orange Pi 3 LTS."""
5+
6+
from adafruit_blinka.microcontroller.allwinner.h6 import pin
7+
8+
PD26 = pin.PD26
9+
SDA = pin.PD26
10+
PD25 = pin.PD25
11+
SCL = pin.PD25
12+
PD22 = pin.PD22
13+
PL2 = pin.PL2
14+
PL3 = pin.PL3
15+
PD24 = pin.PD24
16+
UART3_RX = pin.PD24
17+
PD18 = pin.PD18
18+
PD23 = pin.PD23
19+
UART3_TX = pin.PD23
20+
PL10 = pin.PL10
21+
PD15 = pin.PD15
22+
PD16 = pin.PD16
23+
PH5 = pin.PH5
24+
PH6 = pin.PH6
25+
PD21 = pin.PD21
26+
PH4 = pin.PH4
27+
SPI1_CLK = pin.PH4
28+
PH3 = pin.PH3
29+
SPI1_CS = pin.PH3
30+
PL8 = pin.PL8
31+
32+
SCLK = pin.PH4
33+
MOSI = pin.PH5
34+
MISO = pin.PH6

src/board.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@
128128
elif board_id == ap_board.ORANGE_PI_3:
129129
from adafruit_blinka.board.orangepi.orangepi3 import *
130130

131+
elif board_id == ap_board.ORANGE_PI_3_LTS:
132+
from adafruit_blinka.board.orangepi.orangepi3lts import *
133+
131134
elif board_id == ap_board.ORANGE_PI_3B:
132135
from adafruit_blinka.board.orangepi.orangepi3b import *
133136

0 commit comments

Comments
 (0)