dl9rdz / rdz_ttgo_sonde

280 stars 99 forks source link

Beam OLED battery screen: current values do not fit #276

Open mmadela opened 2 years ago

mmadela commented 2 years ago

The text for charge / discharge is too long, it does not fit on the screen, it causes to overflow last character to begin of the line overwriting the leading digit. There is also the same problem as was on the scanner screen for version 0.9.0 and downwards: previous longer texts stays on the screen, when current text is shorter

Small changes in the screen1.txt for version 0.9.1 solve both problems:

diff --git a/RX_FSK/data/screens1.txt b/RX_FSK/data/screens1.txt
index 52bd823..b614d85 100644
--- a/RX_FSK/data/screens1.txt
+++ b/RX_FSK/data/screens1.txt
@@ -216,8 +216,8 @@ fonts=0,1
 0,12=bS
 1,0=xBatt:
 1,6=bVV
-2,0=bCmA (charge) 
-3,0=bDmA (disch.) 
+2,0,16=bCmA (chrg) 
+3,0,16=bDmA (disch) 
 4,0=xUSB:
 4,5=bUV
 5,5=bImA
g8ixn commented 2 years ago

Could someone try this text please & see if it works in yours. The line Status is removed plus ( ) removed & text changed ie CHG DisCHG My board is Beam v 1.1 @BatteryOLED timer=-1,-1,-1 key1action=+,0,F,W key2action=>,#,#,# timeaction=#,#,# fonts=0,1 0,12=bS 0,12=bS 1,0=xBatt: 1,6=bVV 2,0=bCmA CHG 3,0=bDmA DISCHG 4,0=xUSB: 4,5=bUV 5,5=bImA 6,0=xTemp: 6,5=bT C