#include "pico/stdlib.h"
//A simple example to initialise and flash the built-in LED Raspberry Pi Pico
int main() {
// Specify the PIN number and sleep delay
const uint LED_PIN = 25;
const uint LED_DELAY = 500;
// Setup the LED pin as an output.
gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT);
// Do forever...
while (true) {
// Toggle the LED on and then sleep for delay period
gpio_put(LED_PIN, 1);
sleep_ms(LED_DELAY);
// Toggle the LED off and then sleep for delay period
gpio_put(LED_PIN, 0);
sleep_ms(LED_DELAY);
}
// Should never get here due to infinite while-loop.
return 0;
}