We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5007a6a commit 2f83bf8Copy full SHA for 2f83bf8
src/peripherals/pwm.ts
@@ -79,7 +79,7 @@ class PWMChannel {
79
// GPIO pin indices: Table 525. Mapping of PWM channels to GPIO pins on RP2040
80
readonly pinA1 = this.index * 2;
81
readonly pinB1 = this.index * 2 + 1;
82
- readonly pinA2 = this.index < 7 ? 16 + this.index * 2 + 1 : -1;
+ readonly pinA2 = this.index < 7 ? 16 + this.index * 2 : -1;
83
readonly pinB2 = this.index < 7 ? 16 + this.index * 2 + 1 : -1;
84
85
constructor(private pwm: RPPWM, readonly clock: IClock, readonly index: number) {
0 commit comments