[chronojump/michrolab] BlueButton pauses capture until red button pressed
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab] BlueButton pauses capture until red button pressed
- Date: Fri, 27 May 2022 15:02:50 +0000 (UTC)
commit 5e8a6e3a9e46e2882633ff085fb963796f26775d
Author: xpadulles <x padulles gmail com>
Date: Fri May 27 12:55:31 2022 +0200
BlueButton pauses capture until red button pressed
arduino/michrolab/michrolab.ino | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/arduino/michrolab/michrolab.ino b/arduino/michrolab/michrolab.ino
index 88b248723..72356d37a 100644
--- a/arduino/michrolab/michrolab.ino
+++ b/arduino/michrolab/michrolab.ino
@@ -1247,7 +1247,7 @@ void capture()
}
if (blueButton.fell() && !PcControlled)
{
- updatePersonSet();
+ selectPerson();
}
}
// Serial.println("Ended plotPeriod");
@@ -1866,6 +1866,17 @@ void calibrateInertial()
calibratedInertial = true;
}
+void selectPerson()
+{
+ updatePersonSet();
+ while(!redButton.fell())
+ {
+ blueButton.update();
+ if(blueButton.fell()) updatePersonSet();
+ redButton.update();
+ }
+}
+
void fakeFunction()
{
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]