mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-22 02:33:10 +00:00
bee159f435
* led blink example * restore tests * Update FURI_and_examples.md
16 lines
No EOL
316 B
C
16 lines
No EOL
316 B
C
#include "flipper.h"
|
|
|
|
void application_blink(void* p) {
|
|
// create pin
|
|
GpioPin led = {.pin = GPIO_PIN_8, .port = GPIOA};
|
|
|
|
// configure pin
|
|
pinMode(led, GpioModeOutput);
|
|
|
|
while(1) {
|
|
digitalWrite(led, HIGH);
|
|
delay(500);
|
|
digitalWrite(led, LOW);
|
|
delay(500);
|
|
}
|
|
} |