aboutsummaryrefslogtreecommitdiff
path: root/main/blink.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/blink.c')
-rw-r--r--main/blink.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/blink.c b/main/blink.c
new file mode 100644
index 0000000..956e910
--- /dev/null
+++ b/main/blink.c
@@ -0,0 +1,16 @@
+#include <FreeRTOS.h>
+#include <task.h>
+#include <pico/cyw43_arch.h>
+
+#include "blink.h"
+#include "config.h"
+
+void blink_task() {
+ while (true) {
+ cyw43_arch_gpio_put(CFG_LED_PIN, 1);
+ vTaskDelay(50 / portTICK_PERIOD_MS);
+ cyw43_arch_gpio_put(CFG_LED_PIN, 0);
+ vTaskDelay(1000 / portTICK_PERIOD_MS);
+ }
+}
+