2024-02-07 08:52:03 +00:00
|
|
|
#include <stdio.h>
|
2024-02-07 07:08:07 +00:00
|
|
|
#include "pico/stdlib.h"
|
|
|
|
#include "pico/cyw43_arch.h"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
stdio_init_all();
|
|
|
|
if (cyw43_arch_init()) {
|
|
|
|
printf("Wi-Fi init failed");
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
while (true) {
|
|
|
|
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1);
|
2024-02-07 08:52:03 +00:00
|
|
|
printf("LED on");
|
2024-02-07 07:08:07 +00:00
|
|
|
sleep_ms(1000);
|
|
|
|
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0);
|
2024-02-07 08:52:03 +00:00
|
|
|
printf("LED off");
|
2024-02-07 07:08:07 +00:00
|
|
|
sleep_ms(1000);
|
|
|
|
}
|
|
|
|
}
|