2020-08-26 01:56:33 +00:00
|
|
|
#include "flipper.h"
|
|
|
|
|
|
|
|
void application_blink(void* p) {
|
|
|
|
// create pin
|
|
|
|
GpioPin led = {.pin = GPIO_PIN_8, .port = GPIOA};
|
|
|
|
|
|
|
|
// configure pin
|
2020-08-26 08:45:36 +00:00
|
|
|
pinMode(led, GpioModeOpenDrain);
|
2020-08-26 01:56:33 +00:00
|
|
|
|
|
|
|
while(1) {
|
|
|
|
digitalWrite(led, HIGH);
|
|
|
|
delay(500);
|
|
|
|
digitalWrite(led, LOW);
|
|
|
|
delay(500);
|
|
|
|
}
|
|
|
|
}
|