#include "pico/stdlib.h" int main() { #ifndef PICO_DEFAULT_LED_PIN #warning blink example requires a board with a regular LED #else const uint LED_PIN = PICO_DEFAULT_LED_PIN; // Default PIN number for the built-in LED gpio_init(LED_PIN); // Initialize the LED gpio_set_dir(LED_PIN, GPIO_OUT); // Never-ending polling loop while (true) { // Turn on the LED, then wait 1/2 second gpio_put(LED_PIN, 1); sleep_ms(500); // Turn off the LED, then wait 1/2 second gpio_put(LED_PIN, 0); sleep_ms(500); } #endif }