]>
git.scottworley.com Git - tattlekey/blob - client/blink.c
b056322864cbd8b836737dc4d148848492959f43
1 #include "pico/cyw43_arch.h"
2 #include "pico/stdlib.h"
6 void one_blink(int duration
) {
7 cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN
, 1);
9 cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN
, 0);
13 void signal(int count
, int duration
) {
14 for (int i
= 0; i
< count
; i
++)
19 void blink_forever(int duration
) {
25 void signal_error_by_blinking() { blink_forever(100); }
26 void signal_success_by_blinking() { blink_forever(400); }