From af070af554cc7f922f30408dd7cc92d2b723e007 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 1 Apr 2025 15:50:24 +1300 Subject: [PATCH 1/4] show please wait message on companion boot --- examples/companion_radio/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/companion_radio/main.cpp b/examples/companion_radio/main.cpp index d6a6e990..4672e6e6 100644 --- a/examples/companion_radio/main.cpp +++ b/examples/companion_radio/main.cpp @@ -1442,7 +1442,9 @@ void setup() { #ifdef DISPLAY_CLASS if (display.begin()) { disp = &display; - disp->clear(); + disp->startFrame(); + disp->print("Please wait..."); + disp->endFrame(); } #endif #endif From f93a5156bb9d4bc23a7c6677b88b7a1d6c1e1db3 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 1 Apr 2025 16:00:09 +1300 Subject: [PATCH 2/4] show please wait message on repeater boot --- examples/simple_repeater/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/simple_repeater/main.cpp b/examples/simple_repeater/main.cpp index 4836c533..8ac1e8a7 100644 --- a/examples/simple_repeater/main.cpp +++ b/examples/simple_repeater/main.cpp @@ -616,6 +616,14 @@ void setup() { board.begin(); +#ifdef DISPLAY_CLASS + if(display.begin()){ + display.startFrame(); + display.print("Please wait..."); + display.endFrame(); + } +#endif + if (!radio_init()) { halt(); } fast_rng.begin(radio_get_rng_seed()); @@ -646,7 +654,6 @@ void setup() { the_mesh.begin(fs); #ifdef DISPLAY_CLASS - display.begin(); ui_task.begin(the_mesh.getNodeName(), FIRMWARE_BUILD_DATE); #endif From 7e583d7f98e84835d56dda18908b4c3ada46064c Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 1 Apr 2025 16:04:06 +1300 Subject: [PATCH 3/4] show please wait message on room server boot --- examples/simple_room_server/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/simple_room_server/main.cpp b/examples/simple_room_server/main.cpp index 34c8ebdf..36938ef6 100644 --- a/examples/simple_room_server/main.cpp +++ b/examples/simple_room_server/main.cpp @@ -846,6 +846,14 @@ void setup() { board.begin(); +#ifdef DISPLAY_CLASS + if(display.begin()){ + display.startFrame(); + display.print("Please wait..."); + display.endFrame(); + } +#endif + if (!radio_init()) { halt(); } fast_rng.begin(radio_get_rng_seed()); @@ -875,7 +883,6 @@ void setup() { the_mesh.begin(fs); #ifdef DISPLAY_CLASS - display.begin(); ui_task.begin(the_mesh.getNodeName(), FIRMWARE_BUILD_DATE); #endif From 4d4a0ae4e3f8e085c253356cc7b27222eab5b4ff Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 1 Apr 2025 16:10:12 +1300 Subject: [PATCH 4/4] init display before radio --- examples/companion_radio/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/companion_radio/main.cpp b/examples/companion_radio/main.cpp index 4672e6e6..31c441d5 100644 --- a/examples/companion_radio/main.cpp +++ b/examples/companion_radio/main.cpp @@ -1433,10 +1433,6 @@ void setup() { board.begin(); - if (!radio_init()) { halt(); } - - fast_rng.begin(radio_get_rng_seed()); - #ifdef HAS_UI DisplayDriver* disp = NULL; #ifdef DISPLAY_CLASS @@ -1449,6 +1445,10 @@ void setup() { #endif #endif + if (!radio_init()) { halt(); } + + fast_rng.begin(radio_get_rng_seed()); + #if defined(NRF52_PLATFORM) InternalFS.begin(); the_mesh.begin(InternalFS,