[chronojump/FS-LCD-Menu] Nicer menu
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-LCD-Menu] Nicer menu
- Date: Fri, 3 Dec 2021 16:06:47 +0000 (UTC)
commit 38136680d6f10bbb38eb34da8c211ef7680cca4c
Author: Xavier Padullés <x padulles gmail com>
Date: Fri Dec 3 15:37:14 2021 +0100
Nicer menu
arduino/ForceSensorLCD/ForceSensorLCD.ino | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/arduino/ForceSensorLCD/ForceSensorLCD.ino b/arduino/ForceSensorLCD/ForceSensorLCD.ino
index 044ba26d5..e04a8c930 100644
--- a/arduino/ForceSensorLCD/ForceSensorLCD.ino
+++ b/arduino/ForceSensorLCD/ForceSensorLCD.ino
@@ -185,11 +185,11 @@ unsigned short menu = 0;
unsigned short submenu = 0;
const String menuList [] = {
- "Record",
- "Tare + Record",
- "Tare",
- "Calibrate",
- "System"
+ "--- Measure --->",
+ "- Tare+Measure->",
+ "----- Tare ---->",
+ "--- Calibrate ->",
+ "---- System --->"
};
void setup() {
@@ -290,25 +290,27 @@ void showMenu(void)
{
lcd.clear();
showBatteryLevel();
- lcd.setCursor(3, 0);
+ lcd.setCursor(0, 1);
lcd.print(menuList[menu]);
- lcd.setCursor(2, 1);
+ lcd.createChar(7, recordChar);
+ lcd.setCursor(2, 0);
+ lcd.write(byte (7));
if (menu == 0)
{
- lcd.print("Red: Start");
+ lcd.print(" Start");
} else if (menu == 1)
{
- lcd.print("Red: Start");
+ lcd.print(" Start");
} else if (menu == 2)
{
- lcd.print("Red: Tare");
+ lcd.print(" Tare");
} else if (menu == 3)
{
- lcd.print("Red: Calibrate");
+ lcd.print(" Calibrate");
} else if (menu == 4)
{
- lcd.print("Red: System Info");
+ lcd.print(" System Info");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]