From a683f4689264f85953c246ac15492bad25974197 Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Thu, 19 Nov 2015 09:16:44 -0600 Subject: use a single layout for help screens as they're basically all the same, misc tweaks and fixes --- main.cpp | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 9b9b165..856127c 100644 --- a/main.cpp +++ b/main.cpp @@ -15,9 +15,7 @@ #include "LayoutStartup.h" #include "LayoutScrollSelect.h" #include "LayoutConfig.h" -#include "LayoutDemoHelp.h" -#include "LayoutSingleHelp.h" -#include "LayoutSweepHelp.h" +#include "LayoutHelp.h" // button header #include "ButtonHandler.h" // LoRa header @@ -190,12 +188,16 @@ void configuration() { } void loraDemo() { - LayoutDemoHelp ldh(lcd); + LayoutHelp lh(lcd); + lh.display(); + lh.updateMode("LoRa Demo"); + lh.updateDescription("Select TX Method"); + lh.updateSw1(" Trigger"); + lh.updateSw2("Interval"); // clear any stale signals osSignalClear(main_id, buttonSignal | loraSignal); - ldh.display(); logInfo("demo mode"); while (true) { @@ -219,12 +221,15 @@ void loraDemo() { } void surveySingle() { - LayoutSingleHelp lsh(lcd); + LayoutHelp lh(lcd); + lh.display(); + lh.updateMode("Survey Single"); + lh.updateSw1(" DR/PWR"); + lh.updateSw2("Survey"); // clear any stale signals osSignalClear(main_id, buttonSignal | loraSignal); - lsh.display(); logInfo("survey single mode"); while (true) { @@ -248,12 +253,15 @@ void surveySingle() { } void surveySweep() { - LayoutSweepHelp lsh(lcd); + LayoutHelp lh(lcd); + lh.display(); + lh.updateMode("Survey Sweep"); + lh.updateSw1(" Cancel"); + lh.updateSw2("Sweep"); // clear any stale signals osSignalClear(main_id, buttonSignal | loraSignal); - lsh.display(); logInfo("survey sweep mode"); while (true) { -- cgit v1.2.3