From d297d8ec1f5bac1015c53dfe169d2ce1a838b007 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 14 Sep 2024 10:04:38 -0600 Subject: more --- hello_world.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'hello_world.c') diff --git a/hello_world.c b/hello_world.c index 49008a6..53e341c 100644 --- a/hello_world.c +++ b/hello_world.c @@ -2,7 +2,13 @@ #include "pico/stdlib.h" int main() { - setup_default_uart(); - printf("Hello, world!\n"); - return 0; + stdio_init_all(); + gpio_init(PICO_DEFAULT_LED_PIN); + gpio_set_dir(PICO_DEFAULT_LED_PIN, GPIO_OUT); + + for (bool st = true; true; st = !st) { + gpio_put(PICO_DEFAULT_LED_PIN, st); + printf("Hello, world!\n"); + sleep_ms(1000); + } } -- cgit v1.2.3-2-g168b