diff --git a/TODO.md b/TODO.md index 6336f80a..e1e09772 100644 --- a/TODO.md +++ b/TODO.md @@ -5,6 +5,7 @@ # Medium priority +* show radio and gps signal strength as an image * apply radio settings from android land * only BLE advertise for a short time after the screen is on and button pressed - to save power and prevent people for sniffing for our BT app. * use https://platformio.org/lib/show/1260/OneButton diff --git a/src/screen.cpp b/src/screen.cpp index 6fd3ec28..7cbab6f7 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -136,7 +136,7 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16 String sender = "KH:"; display->drawString(0 + x, 0 + y, sender); display->setFont(ArialMT_Plain_10); - display->drawStringMaxWidth(4 + x, 10 + y, 128, " Lorem ipsum\n dolor sit amet, consetetur sadipscing elitr, sed diam"); + display->drawStringMaxWidth(4 + x, 10 + y, 128, " Hey - I found the trail, but I've fallen and I can't get up. ;-)"); // ui.disableIndicator(); } @@ -257,10 +257,13 @@ void drawNodeInfo(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, in const char *username = node->has_user ? node->user.long_name : "Unknown Name"; + static char signalStr[20]; + snprintf(signalStr, sizeof(signalStr), "Signal: %d", node->snr); + const char *fields[] = { username, "2.1 mi", - "Signal: good", + signalStr, "12 minutes ago", NULL}; drawColumns(display, x, y, fields);