From 1bd7040efe360789a3f2999948b80498a4528258 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Thu, 24 Oct 2024 05:24:43 -0400 Subject: most things working --- test_fw/src/bringup.cpp | 1 + test_fw/src/main.cpp | 2 ++ 2 files changed, 3 insertions(+) (limited to 'test_fw/src') diff --git a/test_fw/src/bringup.cpp b/test_fw/src/bringup.cpp index f2d2292..07ac257 100644 --- a/test_fw/src/bringup.cpp +++ b/test_fw/src/bringup.cpp @@ -2,6 +2,7 @@ #include "board.h" #include +#include using namespace ocularium; diff --git a/test_fw/src/main.cpp b/test_fw/src/main.cpp index dd7240a..0370408 100644 --- a/test_fw/src/main.cpp +++ b/test_fw/src/main.cpp @@ -184,6 +184,8 @@ void loop() { const auto lux_value = lux.lux(); analogWrite(LED_STORAGE, map(static_cast(lux_value), 200, 1000, 0, 255)); + + analogWrite(LED_CAPTURING, digitalRead(CARD_DETECT) ? 0 : 24); static sensors_vec_t accel, gyro; -- cgit v1.3.1