summaryrefslogtreecommitdiff
path: root/src/status.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-21 09:43:10 +0100
committerHampusM <hampus@hampusmat.com>2022-03-21 09:43:10 +0100
commit12e3713e7705e4353d306ae2ec03abfe8fcd5f55 (patch)
treeced7df2c08a1afa4593fb15dcfa115effa4ad640 /src/status.cpp
parentd5b6bc7bb8250dd252b8569e0896febf94c60b12 (diff)
feat: add status LED
Diffstat (limited to 'src/status.cpp')
-rw-r--r--src/status.cpp13
1 files changed, 13 insertions, 0 deletions
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 <Arduino.h>
+
+void initialize_status_leds() noexcept
+{
+ pinMode(STATUS_LED_POSITIVE, OUTPUT);
+}
+
+void set_led_positive(uint8_t value) noexcept
+{
+ digitalWrite(STATUS_LED_POSITIVE, value);
+}