flipperzero-firmware/applications/examples/blink.c
coreglitch eb2679b982
Refactor F2/local before F3 merge (#220)
* add files from f3
* rollback lfs
* Move assets from LFS
* remove lfs from build

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2020-11-06 11:31:59 +03:00

20 lines
400 B
C

#include "flipper.h"
#include "flipper_v2.h"
void application_blink(void* p) {
// create pin
GpioPin led = led_gpio[0];
// TODO open record
GpioPin* led_record = &led;
// configure pin
gpio_init(led_record, GpioModeOutputOpenDrain);
while(1) {
gpio_write(led_record, true);
delay(500);
gpio_write(led_record, false);
delay(500);
}
}