aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/src/debug.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/src/debug.hpp')
-rw-r--r--firmware/src/debug.hpp8
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);
+
}
}