Skip to content

Commit

Permalink
Merge pull request #846 from nopnop2002/main
Browse files Browse the repository at this point in the history
added orangepipc2 board
  • Loading branch information
makermelissa authored Jun 13, 2024
2 parents c6ece1c + 69e6e62 commit d950aca
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/adafruit_blinka/board/orangepi/orangepipc2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""Pin definitions for the Orange Pi PC2."""

from adafruit_blinka.microcontroller.allwinner.h5 import pin

PA12 = pin.PA12
SDA = pin.PA12
PA11 = pin.PA11
SCL = pin.PA11
PA6 = pin.PA6
PA1 = pin.PA1
PA0 = pin.PA0
PA3 = pin.PA3
PA15 = pin.PA15
MOSI = pin.SPI1_MOSI
PA16 = pin.PA16
MISO = pin.SPI1_MISO
PA14 = pin.PA14
SCK = pin.SPI1_SCLK
SCLK = pin.SPI1_SCLK
PA19 = pin.PA19
PA7 = pin.PA7
PA8 = pin.PA8
PA9 = pin.PA9
PA10 = pin.PA10
PD11 = pin.PD11

PC5 = pin.PC5
TX = pin.PC5
PC6 = pin.PC6
RX = pin.PC6
PD14 = pin.PD14
PC4 = pin.PC4
PC7 = pin.PC7
PA2 = pin.PA2
PA13 = pin.PA13
PA21 = pin.PA21
PA18 = pin.PA18
PG8 = pin.PG8
PG9 = pin.PG9
PG6 = pin.PG6
PG7 = pin.PG7
2 changes: 2 additions & 0 deletions src/adafruit_blinka/microcontroller/allwinner/h5/pin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
PC3 = Pin((1, 67))
SPI0_CS = PC3
PC4 = Pin((1, 68))
PC5 = Pin((1, 69))
PC6 = Pin((1, 70))
PC7 = Pin((1, 71))

PD11 = Pin((1, 107))
Expand Down
3 changes: 3 additions & 0 deletions src/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
elif board_id == ap_board.ORANGE_PI_PC:
from adafruit_blinka.board.orangepi.orangepipc import *

elif board_id == ap_board.ORANGE_PI_PC2:
from adafruit_blinka.board.orangepi.orangepipc2 import *

elif board_id == ap_board.ORANGE_PI_R1:
from adafruit_blinka.board.orangepi.orangepir1 import *

Expand Down

0 comments on commit d950aca

Please sign in to comment.