]> git.scottworley.com Git - tattlekey/blob - client/tattlekey.c
910f6963b15ba10a647a2d42c1242398bb8d0d0d
[tattlekey] / client / tattlekey.c
1 /**
2 * Copyright (c) 2022 Raspberry Pi (Trading) Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 #include "pico/cyw43_arch.h"
8 #include "pico/stdlib.h"
9
10 int main() {
11 stdio_init_all();
12 if (cyw43_arch_init()) {
13 printf("Wi-Fi init failed");
14 return -1;
15 }
16 while (true) {
17 cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1);
18 sleep_ms(250);
19 cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0);
20 sleep_ms(250);
21 }
22 }