aboutsummaryrefslogtreecommitdiff
path: root/main/blink.c
blob: 1a7c20550b293a3ba9318285df24f2a1a67ec68d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <FreeRTOS.h>
#include <pico/cyw43_arch.h>
#include <task.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);
	}
}