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