Skip to content

Commit a70019b

Browse files
authored
Merge branch 'adafruit:main' into add-pwmout-generic-board
2 parents 9918df5 + c88ce53 commit a70019b

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
"""Pin definitions for the Orange Pi PC2."""
5+
6+
from adafruit_blinka.microcontroller.allwinner.h5 import pin
7+
8+
PA12 = pin.PA12
9+
SDA = pin.PA12
10+
PA11 = pin.PA11
11+
SCL = pin.PA11
12+
PA6 = pin.PA6
13+
PA1 = pin.PA1
14+
PA0 = pin.PA0
15+
PA3 = pin.PA3
16+
PA15 = pin.PA15
17+
MOSI = pin.SPI1_MOSI
18+
PA16 = pin.PA16
19+
MISO = pin.SPI1_MISO
20+
PA14 = pin.PA14
21+
SCK = pin.SPI1_SCLK
22+
SCLK = pin.SPI1_SCLK
23+
PA19 = pin.PA19
24+
PA7 = pin.PA7
25+
PA8 = pin.PA8
26+
PA9 = pin.PA9
27+
PA10 = pin.PA10
28+
PD11 = pin.PD11
29+
30+
PC5 = pin.PC5
31+
TX = pin.PC5
32+
PC6 = pin.PC6
33+
RX = pin.PC6
34+
PD14 = pin.PD14
35+
PC4 = pin.PC4
36+
PC7 = pin.PC7
37+
PA2 = pin.PA2
38+
PA13 = pin.PA13
39+
PA21 = pin.PA21
40+
PA18 = pin.PA18
41+
PG8 = pin.PG8
42+
PG9 = pin.PG9
43+
PG6 = pin.PG6
44+
PG7 = pin.PG7

src/adafruit_blinka/microcontroller/allwinner/h5/pin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
PC3 = Pin((1, 67))
4444
SPI0_CS = PC3
4545
PC4 = Pin((1, 68))
46+
PC5 = Pin((1, 69))
47+
PC6 = Pin((1, 70))
4648
PC7 = Pin((1, 71))
4749

4850
PD11 = Pin((1, 107))

src/adafruit_blinka/microcontroller/rockchip/rk3399/pin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
# PWM
208208
PWM0 = GPIO4_C2
209209
PWM1 = GPIO4_C6
210+
PWM2 = GPIO1_C3
210211

211212
# ordered as i2cId, SCL, SDA
212213
i2cPorts = (
@@ -224,7 +225,8 @@
224225
# SysFS pwm outputs, pwm channel and pin in first tuple
225226
pwmOuts = (
226227
((0, 0), PWM0),
227-
((0, 0), PWM1),
228+
((1, 0), PWM1),
229+
((2, 0), PWM2),
228230
)
229231

230232
# SysFS analog inputs, Ordered as analog analogInId, device, and channel

src/board.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@
9696
elif board_id == ap_board.ORANGE_PI_PC:
9797
from adafruit_blinka.board.orangepi.orangepipc import *
9898

99+
elif board_id == ap_board.ORANGE_PI_PC2:
100+
from adafruit_blinka.board.orangepi.orangepipc2 import *
101+
99102
elif board_id == ap_board.ORANGE_PI_R1:
100103
from adafruit_blinka.board.orangepi.orangepir1 import *
101104

0 commit comments

Comments
 (0)