mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-20 12:02:21 +00:00
show real radio signal strength
This commit is contained in:
parent
6dc17bdfde
commit
124c3e2edd
1
TODO.md
1
TODO.md
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
# Medium priority
|
# Medium priority
|
||||||
|
|
||||||
|
* show radio and gps signal strength as an image
|
||||||
* apply radio settings from android land
|
* 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.
|
* 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
|
* use https://platformio.org/lib/show/1260/OneButton
|
||||||
|
@ -136,7 +136,7 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
|
|||||||
String sender = "KH:";
|
String sender = "KH:";
|
||||||
display->drawString(0 + x, 0 + y, sender);
|
display->drawString(0 + x, 0 + y, sender);
|
||||||
display->setFont(ArialMT_Plain_10);
|
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();
|
// 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";
|
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[] = {
|
const char *fields[] = {
|
||||||
username,
|
username,
|
||||||
"2.1 mi",
|
"2.1 mi",
|
||||||
"Signal: good",
|
signalStr,
|
||||||
"12 minutes ago",
|
"12 minutes ago",
|
||||||
NULL};
|
NULL};
|
||||||
drawColumns(display, x, y, fields);
|
drawColumns(display, x, y, fields);
|
||||||
|
Loading…
Reference in New Issue
Block a user