Add small font, display date, Ble connection and battery power in display app (hard-coded values for now).

This commit is contained in:
JF
2019-12-27 15:12:09 +01:00
parent b5b3c4270b
commit 11d5403558
7 changed files with 1733 additions and 3 deletions
+4 -1
View File
@@ -13,7 +13,6 @@ using namespace Pinetime::Applications;
void DisplayApp::Start() {
if (pdPASS != xTaskCreate(DisplayApp::Process, "DisplayApp", 256, this, 0, &taskHandle))
APP_ERROR_HANDLER(NRF_ERROR_NO_MEM);
}
void DisplayApp::Process(void *instance) {
@@ -117,6 +116,10 @@ void DisplayApp::SetTime(uint8_t minutes, uint8_t hours) {
void DisplayApp::RunningState() {
uint32_t systick_counter = nrf_rtc_counter_get(portNRF_RTC_REG);
gfx->DrawString(10, 0, 0xffff, "BLE", &smallFont, false);
gfx->DrawString((240-96), 0, 0xffff, "BAT: 58%", &smallFont, false);
gfx->DrawString(20, 160, 0xffff, "FRIDAY 27 DEC 2019", &smallFont, false);
auto raw = systick_counter / 1000;
auto currentDeltaSeconds = raw - deltaSeconds;