summaryrefslogtreecommitdiff
path: root/src/gyronardo.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/gyronardo.cpp
parentd5b6bc7bb8250dd252b8569e0896febf94c60b12 (diff)
feat: add status LED
Diffstat (limited to 'src/gyronardo.cpp')
-rw-r--r--src/gyronardo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gyronardo.cpp b/src/gyronardo.cpp
index bee13b6..9b1aa24 100644
--- a/src/gyronardo.cpp
+++ b/src/gyronardo.cpp
@@ -2,6 +2,7 @@
#include "sensor/calibration.hpp"
#include "sensor/sensor.hpp"
#include "serial.hpp"
+#include "status.hpp"
#include "utils.hpp"
#include <Wire.h>
@@ -15,6 +16,8 @@ constexpr unsigned int BAUD_RATE = 9600U;
void setup()
{
+ initialize_status_leds();
+
auto sout = common::make_shared<SerialStream>(Serial, BAUD_RATE);
auto sensor = common::make_shared<Sensor>(SENSOR_ADDRESS, Wire, SENSOR_THROTTLE_TIME);
@@ -58,6 +61,8 @@ void setup()
stop();
}
+ set_led_positive(HIGH);
+
*sout << "Finished calibrating sensor\n";
*sout << "Calibration values:\n"