[chronojump/FS-LCD-Menu] Fixed battery character position
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-LCD-Menu] Fixed battery character position
- Date: Fri, 3 Dec 2021 11:20:56 +0000 (UTC)
commit 7393e6a7d5711f6c961f28698e1b48af41e23584
Author: Xavier Padullés <x padulles gmail com>
Date: Fri Dec 3 11:54:34 2021 +0100
Fixed battery character position
arduino/ForceSensorLCD/ForceSensorLCD.ino | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/arduino/ForceSensorLCD/ForceSensorLCD.ino b/arduino/ForceSensorLCD/ForceSensorLCD.ino
index 7f14ed911..c8cdeacfd 100644
--- a/arduino/ForceSensorLCD/ForceSensorLCD.ino
+++ b/arduino/ForceSensorLCD/ForceSensorLCD.ino
@@ -746,11 +746,11 @@ void showBatteryLevel() {
lcd.write(byte(3));
} else if (sensorValue < 730 && sensorValue >= 701) {
lcd.createChar(2, battery2);
- lcd.setCursor(2, 0);
+ lcd.setCursor(15, 0);
lcd.write(byte(2));
} else if (sensorValue < 701 && sensorValue >= 672) {
lcd.createChar(1, battery1);
- lcd.setCursor(1, 0);
+ lcd.setCursor(15, 0);
lcd.write(byte(1));
} else if (sensorValue <= 701) {
lcd.createChar(0, battery0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]