change mode to OD
This commit is contained in:
parent
ab07bfb104
commit
e28cfe5fec
@ -5,7 +5,7 @@ void application_blink(void* p) {
|
|||||||
GpioPin led = {.pin = GPIO_PIN_8, .port = GPIOA};
|
GpioPin led = {.pin = GPIO_PIN_8, .port = GPIOA};
|
||||||
|
|
||||||
// configure pin
|
// configure pin
|
||||||
pinMode(led, GpioModeOutput);
|
pinMode(led, GpioModeOpenDrain);
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
digitalWrite(led, HIGH);
|
digitalWrite(led, HIGH);
|
||||||
|
@ -30,7 +30,7 @@ void application_blink(void* p) {
|
|||||||
GpioPin led = {.pin = GPIO_PIN_8, .port = GPIOA};
|
GpioPin led = {.pin = GPIO_PIN_8, .port = GPIOA};
|
||||||
|
|
||||||
// configure pin
|
// configure pin
|
||||||
pinMode(led, GpioModeOutput);
|
pinMode(led, GpioModeOpenDrain);
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
digitalWrite(led, HIGH);
|
digitalWrite(led, HIGH);
|
||||||
|
Loading…
Reference in New Issue
Block a user