diff options
| author | Andreea Radoescu <randreea23@gmail.com> | 2026-10-25 18:40:15 +0100 |
|---|---|---|
| committer | Andreea Radoescu <randreea23@gmail.com> | 2026-10-25 18:40:15 +0100 |
| commit | 7c2b1d2d6624f6c401459d27e9216d74b164c09d (patch) | |
| tree | 799d38edfca4ea23667c6ef9a89ef7fc9f21e8bc /firmware/src/debug.hpp | |
| parent | 6a9433c1ef495cd3f992fb3fd586677f4cc18b7c (diff) | |
added code to initialize display and render on screen the adc samples
Diffstat (limited to 'firmware/src/debug.hpp')
| -rw-r--r-- | firmware/src/debug.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
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); + } } |
