summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-11-19 09:16:44 -0600
committerMike Fiore <mfiore@multitech.com>2015-11-19 09:16:44 -0600
commita683f4689264f85953c246ac15492bad25974197 (patch)
treeb35489d769204cea05d19ce1c255f62fcb227ef3 /main.cpp
parent8167e5ad0453f2e6855f9622c2acddb9cf55c941 (diff)
downloadmtdot-box-evb-factory-firmware-a683f4689264f85953c246ac15492bad25974197.tar.gz
mtdot-box-evb-factory-firmware-a683f4689264f85953c246ac15492bad25974197.tar.bz2
mtdot-box-evb-factory-firmware-a683f4689264f85953c246ac15492bad25974197.zip
use a single layout for help screens as they're basically all the same, misc tweaks and fixes
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp26
1 files changed, 17 insertions, 9 deletions
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) {