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 642f453 commit beb40a6Copy full SHA for beb40a6
ports/stm32f4/common-hal/digitalio/DigitalInOut.c
@@ -95,7 +95,7 @@ digitalio_direction_t common_hal_digitalio_digitalinout_get_direction(
95
96
void common_hal_digitalio_digitalinout_set_value(
97
digitalio_digitalinout_obj_t *self, bool value) {
98
- HAL_GPIO_WritePin(pin_port(self->pin->number), 1 << self->pin->number, value);
+ HAL_GPIO_WritePin(pin_port(self->pin->number), pin_mask(self->pin->number), value);
99
}
100
101
bool common_hal_digitalio_digitalinout_get_value(
0 commit comments