From: Melissa LeBlanc-Williams Date: Thu, 13 Jun 2024 22:44:15 +0000 (-0700) Subject: Merge pull request #848 from nopnop2002/main X-Git-Tag: 8.42.1 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/c88ce53402543d75b748b8ed4f6e1eb758fa1c1b?hp=d950acad7d3793bee88766d28777f4dfb0d9f616 Merge pull request #848 from nopnop2002/main 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