battery voltage display

This commit is contained in:
Klaus K Wilting 2018-07-21 22:35:30 +02:00
parent fc0bd1f542
commit 969897af4d
3 changed files with 8 additions and 9 deletions

View File

@ -11,12 +11,11 @@
; ---> SELECT TARGET PLATFORM HERE! <---
[platformio]
;env_default = lolin32lite, heltec, generic
;env_default = generic
env_default = generic
;env_default = heltec
;env_default = ttgov1
;env_default = ttgov2
env_default = ttgov21
;env_default = ttgov21
;env_default = ttgobeam
;env_default = lopy
;env_default = lopy4
@ -28,8 +27,8 @@ env_default = ttgov21
description = Paxcounter is a proof-of-concept ESP32 device for metering passenger flows in realtime. It counts how many mobile devices are around.
[common_env_data]
;platform_espressif32 = espressif32@1.0.2
platform_espressif32 = https://github.com/platformio/platform-espressif32.git#feature/stage
platform_espressif32 = espressif32@1.0.2
;platform_espressif32 = https://github.com/platformio/platform-espressif32.git#feature/stage
board_build.partitions = no_ota.csv
lib_deps_all =
lib_deps_display =

View File

@ -112,7 +112,7 @@ void refreshDisplay() {
// update Battery status (line 2)
#ifdef HAS_BATTERY_PROBE
u8x8.setCursor(0, 2);
u8x8.printf("B=%.1fV", read_voltage() / 1000.0);
u8x8.printf("B:%.1fV", read_voltage() / 1000.0);
#endif
// update GPS status (line 2)
@ -121,10 +121,10 @@ void refreshDisplay() {
if (!gps.location.isValid()) // if no fix then display Sats value inverse
{
u8x8.setInverseFont(1);
u8x8.printf("Sat %.3d", gps.satellites.value());
u8x8.printf("Sat:%.3d", gps.satellites.value());
u8x8.setInverseFont(0);
} else
u8x8.printf("Sat %.3d", gps.satellites.value());
u8x8.printf("Sat:%.3d", gps.satellites.value());
#endif
// update bluetooth counter + LoRa SF (line 3)

View File

@ -8,7 +8,7 @@
#include <esp32-hal-log.h>
// attn: increment version after modifications to configData_t truct!
#define PROGVERSION "1.3.91" // use max 10 chars here!
#define PROGVERSION "1.3.92" // use max 10 chars here!
#define PROGNAME "PAXCNT"
// std::set for unified array functions