change mode to OD

This commit is contained in:
aanper 2020-08-26 11:45:36 +03:00
parent ab07bfb104
commit e28cfe5fec
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ void application_blink(void* p) {
GpioPin led = {.pin = GPIO_PIN_8, .port = GPIOA};
// configure pin
pinMode(led, GpioModeOutput);
pinMode(led, GpioModeOpenDrain);
while(1) {
digitalWrite(led, HIGH);

View File

@ -30,7 +30,7 @@ void application_blink(void* p) {
GpioPin led = {.pin = GPIO_PIN_8, .port = GPIOA};
// configure pin
pinMode(led, GpioModeOutput);
pinMode(led, GpioModeOpenDrain);
while(1) {
digitalWrite(led, HIGH);