This commit is contained in:
2026-04-10 12:26:53 +02:00
commit 6ae7d5dca3
10 changed files with 471 additions and 0 deletions

23
src/main.c Normal file
View File

@@ -0,0 +1,23 @@
#include <stdio.h>
#include "pico/stdlib.h"
#include "pico/cyw43_arch.h"
#include <stdbool.h>
int main(void) {
stdio_init_all();
// Initialise the Wi-Fi chip
if (cyw43_arch_init()) {
printf("Wi-Fi init failed\n");
return -1;
}
// Example to turn on the Pico W LED
bool led_on = true;
while (true) {
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, led_on);
led_on = !led_on; // Toggle LED state
sleep_ms(1000);
}
}