From: nopnop2002 Date: Thu, 13 Jun 2024 22:01:00 +0000 (+0900) Subject: Fixed PWM definition X-Git-Tag: 8.42.1^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/48eb2dc8a176fa1cded07527055d9517d6aef649 Fixed PWM definition --- diff --git a/src/adafruit_blinka/microcontroller/rockchip/rk3399/pin.py b/src/adafruit_blinka/microcontroller/rockchip/rk3399/pin.py index 792cff9..3cfad48 100644 --- a/src/adafruit_blinka/microcontroller/rockchip/rk3399/pin.py +++ b/src/adafruit_blinka/microcontroller/rockchip/rk3399/pin.py @@ -207,6 +207,7 @@ UART4_RX = GPIO1_A7 # PWM PWM0 = GPIO4_C2 PWM1 = GPIO4_C6 +PWM2 = GPIO1_C3 # ordered as i2cId, SCL, SDA i2cPorts = ( @@ -224,7 +225,8 @@ spiPorts = ( # SysFS pwm outputs, pwm channel and pin in first tuple pwmOuts = ( ((0, 0), PWM0), - ((0, 0), PWM1), + ((1, 0), PWM1), + ((2, 0), PWM2), ) # SysFS analog inputs, Ordered as analog analogInId, device, and channel