From 12e3713e7705e4353d306ae2ec03abfe8fcd5f55 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 21 Mar 2022 09:43:10 +0100 Subject: feat: add status LED --- src/status.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/status.cpp (limited to 'src/status.cpp') diff --git a/src/status.cpp b/src/status.cpp new file mode 100644 index 0000000..2712895 --- /dev/null +++ b/src/status.cpp @@ -0,0 +1,13 @@ +#include "status.hpp" + +#include + +void initialize_status_leds() noexcept +{ + pinMode(STATUS_LED_POSITIVE, OUTPUT); +} + +void set_led_positive(uint8_t value) noexcept +{ + digitalWrite(STATUS_LED_POSITIVE, value); +} -- cgit v1.2.3-18-g5258