]>
git.scottworley.com Git - tattlekey/blob - client/tattlekey.c
1 #include "pico/cyw43_arch.h"
2 #include "pico/stdlib.h"
4 void one_blink(int duration
) {
5 cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN
, 1);
7 cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN
, 0);
11 void signal(int count
, int duration
) {
12 for (int i
= 0; i
< count
; i
++)
17 void blink_forever(int duration
) {
23 void signal_error_by_blinking() { blink_forever(100); }
24 void signal_success_by_blinking() { blink_forever(400); }
28 if (cyw43_arch_init())
29 signal_error_by_blinking();
33 signal_success_by_blinking();