-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #841 from nopnop2002/main
Added luckfox series
- Loading branch information
Showing
12 changed files
with
561 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries | ||
# | ||
# SPDX-License-Identifier: MIT | ||
"""Pin definitions for the Lockfox Pico.""" | ||
|
||
from adafruit_blinka.microcontroller.rockchip.rv1106 import pin | ||
|
||
G42 = pin.GPIO1_B2 | ||
G43 = pin.GPIO1_B3 | ||
G55 = pin.GPIO1_C7 | ||
G54 = pin.GPIO1_C6 | ||
G53 = pin.GPIO1_C5 | ||
G52 = pin.GPIO1_C4 | ||
G58 = pin.GPIO1_D2 | ||
G59 = pin.GPIO1_D3 | ||
G34 = pin.GPIO1_A2 | ||
G48 = pin.GPIO1_C0 # This port is in use as CS0. This port is not available. | ||
G49 = pin.GPIO1_C1 | ||
G50 = pin.GPIO1_C2 | ||
G51 = pin.GPIO1_C3 | ||
G4 = pin.GPIO0_A4 | ||
G56 = pin.GPIO1_D0 | ||
G57 = pin.GPIO1_D1 | ||
G137 = pin.GPIO4_B1 | ||
G136 = pin.GPIO4_B0 | ||
G134 = pin.GPIO4_A6 | ||
G130 = pin.GPIO4_A2 | ||
G131 = pin.GPIO4_A3 | ||
G132 = pin.GPIO4_A4 | ||
|
||
# UART | ||
UART3_TX = pin.UART3_TX_M1 | ||
UART3_RX = pin.UART3_RX_M1 | ||
UART4_TX = pin.UART4_TX_M1 | ||
UART4_RX = pin.UART4_RX_M1 | ||
|
||
# Default UART | ||
TX = UART3_TX | ||
RX = UART3_RX | ||
TXD = UART3_TX | ||
RXD = UART3_RX | ||
|
||
# I2C | ||
I2C3_SCL = pin.I2C3_SCL_M1 | ||
I2C3_SDA = pin.I2C3_SDA_M1 | ||
|
||
# Default I2C | ||
SCL = I2C3_SCL | ||
SDA = I2C3_SDA | ||
|
||
# SPI | ||
SPI0_MISO = pin.SPI0_MISO_M0 | ||
SPI0_MOSI = pin.SPI0_MOSI_M0 | ||
SPI0_SCLK = pin.SPI0_CLK_M0 | ||
SPI0_CS0 = pin.SPI0_CS0_M0 | ||
SPI0_CS1 = pin.SPI0_CS1_M0 | ||
|
||
# Default SPI | ||
MISO = SPI0_MISO | ||
MOSI = SPI0_MOSI | ||
SCLK = SPI0_SCLK | ||
|
||
# PWM | ||
PWM0 = pin.PWM0 | ||
PWM1 = pin.PWM1 | ||
PWM10 = pin.PWM10 | ||
PWM11 = pin.PWM11 | ||
|
||
# ADC | ||
ADC_IN0 = pin.ADC_IN0 | ||
ADC_IN1 = pin.ADC_IN1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries | ||
# | ||
# SPDX-License-Identifier: MIT | ||
"""Pin definitions for the Lockfox Pico Pro/Max.""" | ||
|
||
from adafruit_blinka.microcontroller.rockchip.rv1106 import pin | ||
|
||
G42 = pin.GPIO1_B2 | ||
G43 = pin.GPIO1_B3 | ||
G55 = pin.GPIO1_C7 | ||
G54 = pin.GPIO1_C6 | ||
G53 = pin.GPIO1_C5 | ||
G52 = pin.GPIO1_C4 | ||
G58 = pin.GPIO1_D2 | ||
G59 = pin.GPIO1_D3 | ||
G73 = pin.GPIO2_B1 | ||
G48 = pin.GPIO1_C0 # This port is in use as CS0. This port is not available. | ||
G49 = pin.GPIO1_C1 | ||
G50 = pin.GPIO1_C2 | ||
G51 = pin.GPIO1_C3 | ||
G72 = pin.GPIO2_B0 | ||
G56 = pin.GPIO1_D0 | ||
G57 = pin.GPIO1_D1 | ||
G68 = pin.GPIO2_A4 | ||
G69 = pin.GPIO2_A5 | ||
G64 = pin.GPIO2_A0 | ||
G65 = pin.GPIO2_A1 | ||
G66 = pin.GPIO2_A2 | ||
G67 = pin.GPIO2_A3 | ||
G70 = pin.GPIO2_A6 | ||
G71 = pin.GPIO2_A7 | ||
|
||
# UART | ||
UART3_TX = pin.UART3_TX_M1 | ||
UART3_RX = pin.UART3_RX_M1 | ||
UART4_TX = pin.UART4_TX_M1 | ||
UART4_RX = pin.UART4_RX_M1 | ||
|
||
# Default UART | ||
TX = UART3_TX | ||
RX = UART3_RX | ||
TXD = UART3_TX | ||
RXD = UART3_RX | ||
|
||
# I2C | ||
I2C3_SCL = pin.I2C3_SCL_M1 | ||
I2C3_SDA = pin.I2C3_SDA_M1 | ||
|
||
# Default I2C | ||
SCL = I2C3_SCL | ||
SDA = I2C3_SDA | ||
|
||
# SPI | ||
SPI0_MISO = pin.SPI0_MISO_M0 | ||
SPI0_MOSI = pin.SPI0_MOSI_M0 | ||
SPI0_SCLK = pin.SPI0_CLK_M0 | ||
SPI0_CS0 = pin.SPI0_CS0_M0 | ||
SPI0_CS1 = pin.SPI0_CS1_M0 | ||
|
||
# Default SPI | ||
MISO = SPI0_MISO | ||
MOSI = SPI0_MOSI | ||
SCLK = SPI0_SCLK | ||
|
||
# PWM | ||
PWM5 = pin.PWM5 | ||
PWM6 = pin.PWM6 | ||
PWM10 = pin.PWM10 | ||
PWM11 = pin.PWM11 | ||
|
||
# ADC | ||
ADC_IN0 = pin.ADC_IN0 | ||
ADC_IN1 = pin.ADC_IN1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries | ||
# | ||
# SPDX-License-Identifier: MIT | ||
"""Pin definitions for the Lockfox Pico Mini.""" | ||
|
||
from adafruit_blinka.microcontroller.rockchip.rv1106 import pin | ||
|
||
G42 = pin.GPIO1_B2 | ||
G43 = pin.GPIO1_B3 | ||
G48 = pin.GPIO1_C0 # This port is in use as CS0. This port is not available. | ||
G49 = pin.GPIO1_C1 | ||
G50 = pin.GPIO1_C2 | ||
G51 = pin.GPIO1_C3 | ||
G52 = pin.GPIO1_C4 | ||
G53 = pin.GPIO1_C5 | ||
G56 = pin.GPIO1_D0 | ||
G57 = pin.GPIO1_D1 | ||
G58 = pin.GPIO1_D2 | ||
G59 = pin.GPIO1_D3 | ||
G54 = pin.GPIO1_C6 | ||
G55 = pin.GPIO1_C7 | ||
G4 = pin.GPIO0_A4 | ||
|
||
# UART | ||
UART3_TX = pin.UART3_TX_M1 | ||
UART3_RX = pin.UART3_RX_M1 | ||
UART4_TX = pin.UART4_TX_M1 | ||
UART4_RX = pin.UART4_RX_M1 | ||
|
||
# Default UART | ||
TX = UART3_TX | ||
RX = UART3_RX | ||
TXD = UART3_TX | ||
RXD = UART3_RX | ||
|
||
# I2C | ||
I2C3_SCL = pin.I2C3_SCL_M1 | ||
I2C3_SDA = pin.I2C3_SDA_M1 | ||
|
||
# Default I2C | ||
SCL = I2C3_SCL | ||
SDA = I2C3_SDA | ||
|
||
# SPI | ||
SPI0_MISO = pin.SPI0_MISO_M0 | ||
SPI0_MOSI = pin.SPI0_MOSI_M0 | ||
SPI0_SCLK = pin.SPI0_CLK_M0 | ||
SPI0_CS0 = pin.SPI0_CS0_M0 | ||
SPI0_CS1 = pin.SPI0_CS1_M0 | ||
|
||
# Default SPI | ||
MISO = SPI0_MISO | ||
MOSI = SPI0_MOSI | ||
SCLK = SPI0_SCLK | ||
|
||
# PWM | ||
PWM10 = pin.PWM10 | ||
PWM11 = pin.PWM11 | ||
|
||
# ADC | ||
ADC_IN0 = pin.ADC_IN0 | ||
ADC_IN1 = pin.ADC_IN1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries | ||
# | ||
# SPDX-License-Identifier: MIT | ||
"""Pin definitions for the Lockfox Pico Plus.""" | ||
|
||
from adafruit_blinka.microcontroller.rockchip.rv1106 import pin | ||
|
||
G42 = pin.GPIO1_B2 | ||
G43 = pin.GPIO1_B3 | ||
G55 = pin.GPIO1_C7 | ||
G54 = pin.GPIO1_C6 | ||
G53 = pin.GPIO1_C5 | ||
G52 = pin.GPIO1_C4 | ||
G58 = pin.GPIO1_D2 | ||
G59 = pin.GPIO1_D3 | ||
G73 = pin.GPIO2_B1 | ||
G48 = pin.GPIO1_C0 # This port is in use as CS0. This port is not available. | ||
G49 = pin.GPIO1_C1 | ||
G50 = pin.GPIO1_C2 | ||
G51 = pin.GPIO1_C3 | ||
G72 = pin.GPIO2_B0 | ||
G56 = pin.GPIO1_D0 | ||
G57 = pin.GPIO1_D1 | ||
G102 = pin.GPIO3_A6 | ||
G103 = pin.GPIO3_A7 | ||
G101 = pin.GPIO3_A5 | ||
G100 = pin.GPIO3_A4 | ||
G99 = pin.GPIO3_A3 | ||
G98 = pin.GPIO3_A2 | ||
G97 = pin.GPIO3_A1 | ||
|
||
# UART | ||
UART3_TX = pin.UART3_TX_M1 | ||
UART3_RX = pin.UART3_RX_M1 | ||
UART4_TX = pin.UART4_TX_M1 | ||
UART4_RX = pin.UART4_RX_M1 | ||
|
||
# Default UART | ||
TX = UART3_TX | ||
RX = UART3_RX | ||
TXD = UART3_TX | ||
RXD = UART3_RX | ||
|
||
# I2C | ||
I2C3_SCL = pin.I2C3_SCL_M1 | ||
I2C3_SDA = pin.I2C3_SDA_M1 | ||
|
||
# Default I2C | ||
SCL = I2C3_SCL | ||
SDA = I2C3_SDA | ||
|
||
# SPI | ||
SPI0_MISO = pin.SPI0_MISO_M0 | ||
SPI0_MOSI = pin.SPI0_MOSI_M0 | ||
SPI0_SCLK = pin.SPI0_CLK_M0 | ||
SPI0_CS0 = pin.SPI0_CS0_M0 | ||
SPI0_CS1 = pin.SPI0_CS1_M0 | ||
|
||
# Default SPI | ||
MISO = SPI0_MISO | ||
MOSI = SPI0_MOSI | ||
SCLK = SPI0_SCLK | ||
|
||
# PWM | ||
PWM0 = pin.PWM0 | ||
PWM1 = pin.PWM1 | ||
PWM10 = pin.PWM10 | ||
PWM11 = pin.PWM11 | ||
|
||
# ADC | ||
ADC_IN0 = pin.ADC_IN0 | ||
ADC_IN1 = pin.ADC_IN1 |
4 changes: 4 additions & 0 deletions
4
src/adafruit_blinka/microcontroller/rockchip/rv1106/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries | ||
# | ||
# SPDX-License-Identifier: MIT | ||
"""Definition for the Rockchip RV1106 chip""" |
Oops, something went wrong.