[chronojump/FS-TFT-Menu] Added header ForceSensor.h
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-TFT-Menu] Added header ForceSensor.h
- Date: Tue, 24 May 2022 09:25:58 +0000 (UTC)
commit e5eeccbdbc4fc695f4459d7674f7e15600f7fdc3
Author: xpadulles <x padulles gmail com>
Date: Tue May 24 11:20:00 2022 +0200
Added header ForceSensor.h
arduino/ForceSensorTFT/ForceSensorTFT.h | 7 +++++++
arduino/ForceSensorTFT/ForceSensorTFT.ino | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/arduino/ForceSensorTFT/ForceSensorTFT.h b/arduino/ForceSensorTFT/ForceSensorTFT.h
new file mode 100644
index 000000000..4ddaa451d
--- /dev/null
+++ b/arduino/ForceSensorTFT/ForceSensorTFT.h
@@ -0,0 +1,7 @@
+typedef void (*functionPointer) (void);
+
+struct menuEntry {
+ String title;
+ String description;
+ functionPointer function;
+};
diff --git a/arduino/ForceSensorTFT/ForceSensorTFT.ino b/arduino/ForceSensorTFT/ForceSensorTFT.ino
index de06c28d5..7394b6a26 100644
--- a/arduino/ForceSensorTFT/ForceSensorTFT.ino
+++ b/arduino/ForceSensorTFT/ForceSensorTFT.ino
@@ -1857,7 +1857,7 @@ void showMenu()
if (redButton.fallingEdge())
{
PcControlled = false;
- currentMenu[currentMenuIndex].function(true);
+ currentMenu[currentMenuIndex].function();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]