blinky: erstes Pico-2W-Projekt + README mit Setup-Stolperern
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user