From: Melissa LeBlanc-Williams Date: Mon, 24 May 2021 15:52:50 +0000 (-0700) Subject: Merge pull request #477 from twa127/master X-Git-Tag: 6.10.0 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/78bfa5749837c033839d087a5aab7932960ea6f8?hp=4320a101dd8a5f27dc528101d9a9f22c72005355 Merge pull request #477 from twa127/master Bug Fix Rock Pi E pin.py --- diff --git a/src/adafruit_blinka/board/radxa/rockpie.py b/src/adafruit_blinka/board/radxa/rockpie.py index edb79ed..f5a5a74 100644 --- a/src/adafruit_blinka/board/radxa/rockpie.py +++ b/src/adafruit_blinka/board/radxa/rockpie.py @@ -13,6 +13,7 @@ D13 = pin.GPIO2_A3 # /PIN 67/ D15 = pin.GPIO0_D3 # /PIN 27/ D19 = pin.GPIO3_A1 # /SPI0_TXD/PIN 97/ D21 = pin.GPIO3_A2 # /SPI0_RXD/PIN 98/ +D22 = pin.GPIO2_B4 D23 = pin.GPIO3_A0 # /SPI0_CLK/PIN 96/ D24 = pin.GPIO3_B0 # /SPI0_CSN0/PIN 104/ D26 = pin.GPIO2_B4 # /PIN 76/ diff --git a/src/adafruit_blinka/microcontroller/rockchip/rk3328/__init__.py b/src/adafruit_blinka/microcontroller/rockchip/rk3328/__init__.py new file mode 100644 index 0000000..83fc22c --- /dev/null +++ b/src/adafruit_blinka/microcontroller/rockchip/rk3328/__init__.py @@ -0,0 +1 @@ +"""Definition for the Rockchip RK3328 chip""" diff --git a/src/adafruit_blinka/microcontroller/rockchip/rk3328/pin.py b/src/adafruit_blinka/microcontroller/rockchip/rk3328/pin.py index a0c8426..b9cc3d7 100644 --- a/src/adafruit_blinka/microcontroller/rockchip/rk3328/pin.py +++ b/src/adafruit_blinka/microcontroller/rockchip/rk3328/pin.py @@ -1,6 +1,6 @@ """A Pin class for use with Rockchip RK3328.""" -from adafruit_blinka.microcontroller.generic_linux.sysfs_pin import Pin +from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin GPIO0_A0 = Pin((0, 0)) GPIO0_A1 = Pin((0, 1)) @@ -9,7 +9,7 @@ GPIO0_A3 = Pin((0, 3)) GPIO0_A4 = Pin((0, 4)) GPIO0_A5 = Pin((0, 5)) GPIO0_A6 = Pin((0, 6)) -GPIO0_B7 = Pin((0, 7)) +GPIO0_A7 = Pin((0, 7)) GPIO0_B0 = Pin((0, 8)) GPIO0_B1 = Pin((0, 9)) GPIO0_B2 = Pin((0, 10)) @@ -42,7 +42,7 @@ GPIO1_A3 = Pin((1, 3)) GPIO1_A4 = Pin((1, 4)) GPIO1_A5 = Pin((1, 5)) GPIO1_A6 = Pin((1, 6)) -GPIO1_B7 = Pin((1, 7)) +GPIO1_A7 = Pin((1, 7)) GPIO1_B0 = Pin((1, 8)) GPIO1_B1 = Pin((1, 9)) GPIO1_B2 = Pin((1, 10)) @@ -75,7 +75,7 @@ GPIO2_A3 = Pin((2, 3)) GPIO2_A4 = Pin((2, 4)) GPIO2_A5 = Pin((2, 5)) GPIO2_A6 = Pin((2, 6)) -GPIO2_B7 = Pin((2, 7)) +GPIO2_A7 = Pin((2, 7)) GPIO2_B0 = Pin((2, 8)) GPIO2_B1 = Pin((2, 9)) GPIO2_B2 = Pin((2, 10)) @@ -108,7 +108,7 @@ GPIO3_A3 = Pin((3, 3)) GPIO3_A4 = Pin((3, 4)) GPIO3_A5 = Pin((3, 5)) GPIO3_A6 = Pin((3, 6)) -GPIO3_B7 = Pin((3, 7)) +GPIO3_A7 = Pin((3, 7)) GPIO3_B0 = Pin((3, 8)) GPIO3_B1 = Pin((3, 9)) GPIO3_B2 = Pin((3, 10))