Skip to content

Commit c88ce53

Browse files
authored
Merge pull request #848 from nopnop2002/main
Fixed PWM definition
2 parents d950aca + 48eb2dc commit c88ce53

File tree

1 file changed

+3
-1
lines changed
  • src/adafruit_blinka/microcontroller/rockchip/rk3399

1 file changed

+3
-1
lines changed

src/adafruit_blinka/microcontroller/rockchip/rk3399/pin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
# PWM
208208
PWM0 = GPIO4_C2
209209
PWM1 = GPIO4_C6
210+
PWM2 = GPIO1_C3
210211

211212
# ordered as i2cId, SCL, SDA
212213
i2cPorts = (
@@ -224,7 +225,8 @@
224225
# SysFS pwm outputs, pwm channel and pin in first tuple
225226
pwmOuts = (
226227
((0, 0), PWM0),
227-
((0, 0), PWM1),
228+
((1, 0), PWM1),
229+
((2, 0), PWM2),
228230
)
229231

230232
# SysFS analog inputs, Ordered as analog analogInId, device, and channel

0 commit comments

Comments
 (0)