From e28cfe5fec08b5e09d123ecfbff9ed1827f67cc3 Mon Sep 17 00:00:00 2001 From: aanper Date: Wed, 26 Aug 2020 11:45:36 +0300 Subject: [PATCH] change mode to OD --- applications/examples/blink.c | 2 +- wiki/examples/Blink-app.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/examples/blink.c b/applications/examples/blink.c index 9d59e7393..244b54f76 100644 --- a/applications/examples/blink.c +++ b/applications/examples/blink.c @@ -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); diff --git a/wiki/examples/Blink-app.md b/wiki/examples/Blink-app.md index 7cd131771..9de704093 100644 --- a/wiki/examples/Blink-app.md +++ b/wiki/examples/Blink-app.md @@ -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);