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/gyronardo.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gyronardo.cpp') 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 @@ -15,6 +16,8 @@ constexpr unsigned int BAUD_RATE = 9600U; void setup() { + initialize_status_leds(); + auto sout = common::make_shared(Serial, BAUD_RATE); auto sensor = common::make_shared(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" -- cgit v1.2.3-18-g5258