Skip to content

Commit fc919d2

Browse files
authored
Merge pull request #7558 from jepler/issue7206
Use lowest drive level for PIO
2 parents 5f43a63 + b9f689a commit fc919d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ports/raspberrypi/common-hal/rp2pio/StateMachine.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ bool rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self,
289289
}
290290
pio_gpio_init(self->pio, pin_number);
291291
}
292+
293+
// Use lowest drive level for all State Machine outputs. (#7515
294+
// workaround). Remove if/when Pin objects get a drive_strength
295+
// property and use that value instead.
296+
gpio_set_drive_strength(pin_number, GPIO_DRIVE_STRENGTH_2MA);
292297
}
293298

294299
pio_sm_config c = {0, 0, 0};

0 commit comments

Comments
 (0)