Skip to content

Commit

Permalink
change non DC interframe time, display device name on startup, batter…
Browse files Browse the repository at this point in the history
…y display improvement when chassis not connected
  • Loading branch information
disk91 committed Jan 26, 2022
1 parent d9b33f8 commit 443364f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Release 1.4
- Battery status now empty when Wio Battery chassis non connected
- Non duty cycle zone now have 25s Duty Cycle instead of 5s ( preserve backend capacities )

## Release 1.3
- initialization of the change log
2 changes: 1 addition & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

#define SERIALCONFIG Serial

#define NONDCZONE_DUTYCYCLE_MS 5000 // Fair use and preserve DCs in MS
#define NONDCZONE_DUTYCYCLE_MS 25000 // Fair use and preserve DCs in MS

bool readConfig();
void storeConfig();
Expand Down
12 changes: 8 additions & 4 deletions ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ void displayTitle() {
tft.setTextColor(TFT_GRAY);
tft.setFreeFont(FS9); // Select the orginal small TomThumb font
sprintf(title,"Wio LoRaWan Field Tester");
tft.drawString(title,(320-200)/2, 95, GFXFF);
tft.drawString(title,(320-200)/2, 85, GFXFF);
sprintf(title,"Version %s (%s)", VERSION, model==LORAE5 ? "LoRaE5" : "RFM95");
tft.drawString(title,(320-180)/2, 125, GFXFF);
tft.drawString(title,(320-180)/2, 115, GFXFF);
sprintf(title,"WIO_FT_%02X%02X%02X%02X%02X", loraConf.deveui[3],loraConf.deveui[4], loraConf.deveui[5], loraConf.deveui[6], loraConf.deveui[7]);
tft.drawString(title,(320-160)/2, 180, GFXFF);
}

void displaySplash() {
Expand Down Expand Up @@ -445,10 +447,12 @@ bool refreshLiPo() {
} else if ( state.batVoltage > 3500 ) {
tft.fillRect(xOffset,yOffset,50 ,10,TFT_BLACK);
tft.fillRoundRect(xOffset,yOffset,30,10,5,TFT_ORANGE);
} else {
} else if ( state.batVoltage > 0 ) {
tft.fillRect(xOffset,yOffset,50 ,10,TFT_BLACK);
tft.fillRoundRect(xOffset,yOffset,10,10,5,TFT_RED);
}
} else {
tft.fillRect(xOffset,yOffset,50 ,10,TFT_BLACK);
}
}
tft.drawRoundRect(xOffset,yOffset,50 ,10,5,TFT_WHITE);
state.batUpdated = false;
Expand Down

0 comments on commit 443364f

Please sign in to comment.