Skip to content

Commit 4f4ddf0

Browse files
dhalberttannewt
authored andcommitted
Set DRVSTR on output pins to strong (more current capability).
1 parent c6a15f7 commit 4f4ddf0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

atmel-samd/common-hal/digitalio/DigitalInOut.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ void common_hal_digitalio_digitalinout_switch_to_output(
8080
pin_conf.input_pull = PORT_PIN_PULL_NONE;
8181
port_pin_set_config(self->pin->pin, &pin_conf);
8282

83+
// Turn on "strong" pin driving (more current available). See DRVSTR doc in datasheet.
84+
system_pinmux_pin_set_output_strength(self->pin->pin, SYSTEM_PINMUX_PIN_STRENGTH_HIGH);
85+
8386
self->output = true;
8487
self->open_drain = drive_mode == DRIVE_MODE_OPEN_DRAIN;
8588
common_hal_digitalio_digitalinout_set_value(self, value);

0 commit comments

Comments
 (0)