mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-24 11:14:26 +03:00
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};
|
||||
|
||||
// configure pin
|
||||
pinMode(led, GpioModeOutput);
|
||||
pinMode(led, GpioModeOpenDrain);
|
||||
|
||||
while(1) {
|
||||
digitalWrite(led, HIGH);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user