blinky: erstes Pico-2W-Projekt + README mit Setup-Stolperern

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-07 21:36:41 +02:00
parent a4e49b3139
commit 95ffb6cecb
5 changed files with 137 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "pico/stdlib.h"
#include "pico/cyw43_arch.h"
#define LED_DELAY_MS 250
int main(void) {
if (cyw43_arch_init() != 0) {
return -1;
}
while (true) {
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, true);
sleep_ms(LED_DELAY_MS);
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, false);
sleep_ms(LED_DELAY_MS);
}
}