Skip to content

Commit b9f689a

Browse files
committed
Use lowest drive level for PIO
1 parent 5f43a63 commit b9f689a

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)