From 7c2b1d2d6624f6c401459d27e9216d74b164c09d Mon Sep 17 00:00:00 2001 From: Andreea Radoescu Date: Sun, 25 Oct 2026 18:40:15 +0100 Subject: added code to initialize display and render on screen the adc samples --- firmware/src/debug.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'firmware/src/debug.hpp') diff --git a/firmware/src/debug.hpp b/firmware/src/debug.hpp index 856da38..49be259 100644 --- a/firmware/src/debug.hpp +++ b/firmware/src/debug.hpp @@ -3,10 +3,18 @@ namespace debug { +static void +toggle_led() { + gpio_xor_mask(1u << PICO_DEFAULT_LED_PIN); +} void init() { stdio_init_all(); + gpio_init(PICO_DEFAULT_LED_PIN); + gpio_set_dir(PICO_DEFAULT_LED_PIN, 1); + gpio_put(PICO_DEFAULT_LED_PIN, !PICO_DEFAULT_LED_PIN_INVERTED); + } } -- cgit v1.2.3