summaryrefslogtreecommitdiff
path: root/Layout
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-11-18 11:00:45 -0600
committerMike Fiore <mfiore@multitech.com>2015-11-18 11:00:45 -0600
commita17ec37a0c96a7d204c52ab4f24b11852cdb7f66 (patch)
tree9d061a0268df61d41161e1ac383a21e13b1160ce /Layout
parent0a83aa7c81cb394283b5a327408831f7d62bc336 (diff)
downloadmtdot-box-evb-factory-firmware-a17ec37a0c96a7d204c52ab4f24b11852cdb7f66.tar.gz
mtdot-box-evb-factory-firmware-a17ec37a0c96a7d204c52ab4f24b11852cdb7f66.tar.bz2
mtdot-box-evb-factory-firmware-a17ec37a0c96a7d204c52ab4f24b11852cdb7f66.zip
add placeholder functions for demo, survey single, and survey sweep modes and layouts for each - menu navigation is looking really good
Diffstat (limited to 'Layout')
-rw-r--r--Layout/LayoutDemoHelp.cpp28
-rw-r--r--Layout/LayoutDemoHelp.h22
-rw-r--r--Layout/LayoutSingleHelp.cpp26
-rw-r--r--Layout/LayoutSingleHelp.h21
-rw-r--r--Layout/LayoutSweepHelp.cpp26
-rw-r--r--Layout/LayoutSweepHelp.h21
6 files changed, 144 insertions, 0 deletions
diff --git a/Layout/LayoutDemoHelp.cpp b/Layout/LayoutDemoHelp.cpp
new file mode 100644
index 0000000..dab907e
--- /dev/null
+++ b/Layout/LayoutDemoHelp.cpp
@@ -0,0 +1,28 @@
+#include "LayoutDemoHelp.h"
+
+LayoutDemoHelp::LayoutDemoHelp(DOGS102* lcd)
+ : Layout(lcd),
+ _lMode(0, 0, "LoRa Demo"),
+ _lDesc(0, 1, "Select TX Method"),
+ _lIns1(0, 4, "Hold SW1 any time"),
+ _lIns2(0, 5, "for Main Menu"),
+ _lSw1(10, 7, "Trigger"),
+ _lSw2(0, 7, "Interval")
+{}
+
+LayoutDemoHelp::~LayoutDemoHelp() {}
+
+void LayoutDemoHelp::display() {
+ clear();
+ startUpdate();
+
+ writeLabel(_lMode);
+ writeLabel(_lDesc);
+ writeLabel(_lIns1);
+ writeLabel(_lIns2);
+ writeLabel(_lSw1);
+ writeLabel(_lSw2);
+
+ endUpdate();
+}
+
diff --git a/Layout/LayoutDemoHelp.h b/Layout/LayoutDemoHelp.h
new file mode 100644
index 0000000..3e20df9
--- /dev/null
+++ b/Layout/LayoutDemoHelp.h
@@ -0,0 +1,22 @@
+#ifndef __LAYOUTDEMOHELP_H__
+#define __LAYOUTDEMOHELP_H__
+
+#include "Layout.h"
+
+class LayoutDemoHelp : public Layout {
+ public:
+ LayoutDemoHelp(DOGS102* lcd);
+ ~LayoutDemoHelp();
+
+ void display();
+
+ private:
+ Label _lMode;
+ Label _lDesc;
+ Label _lIns1;
+ Label _lIns2;
+ Label _lSw1;
+ Label _lSw2;
+};
+
+#endif
diff --git a/Layout/LayoutSingleHelp.cpp b/Layout/LayoutSingleHelp.cpp
new file mode 100644
index 0000000..82c4270
--- /dev/null
+++ b/Layout/LayoutSingleHelp.cpp
@@ -0,0 +1,26 @@
+#include "LayoutSingleHelp.h"
+
+LayoutSingleHelp::LayoutSingleHelp(DOGS102* lcd)
+ : Layout(lcd),
+ _lMode(0, 0, "Survey Single"),
+ _lIns1(0, 4, "Hold SW1 any time"),
+ _lIns2(0, 5, "for Main Menu"),
+ _lSw1(11, 7, "DR/PWR"),
+ _lSw2(0, 7, "Survey")
+{}
+
+LayoutSingleHelp::~LayoutSingleHelp() {}
+
+void LayoutSingleHelp::display() {
+ clear();
+ startUpdate();
+
+ writeLabel(_lMode);
+ writeLabel(_lIns1);
+ writeLabel(_lIns2);
+ writeLabel(_lSw1);
+ writeLabel(_lSw2);
+
+ endUpdate();
+}
+
diff --git a/Layout/LayoutSingleHelp.h b/Layout/LayoutSingleHelp.h
new file mode 100644
index 0000000..421bc1c
--- /dev/null
+++ b/Layout/LayoutSingleHelp.h
@@ -0,0 +1,21 @@
+#ifndef __LAYOUTSINGLEHELP_H__
+#define __LAYOUTSINGLEHELP_H__
+
+#include "Layout.h"
+
+class LayoutSingleHelp : public Layout {
+ public:
+ LayoutSingleHelp(DOGS102* lcd);
+ ~LayoutSingleHelp();
+
+ void display();
+
+ private:
+ Label _lMode;
+ Label _lIns1;
+ Label _lIns2;
+ Label _lSw1;
+ Label _lSw2;
+};
+
+#endif
diff --git a/Layout/LayoutSweepHelp.cpp b/Layout/LayoutSweepHelp.cpp
new file mode 100644
index 0000000..eb40013
--- /dev/null
+++ b/Layout/LayoutSweepHelp.cpp
@@ -0,0 +1,26 @@
+#include "LayoutSweepHelp.h"
+
+LayoutSweepHelp::LayoutSweepHelp(DOGS102* lcd)
+ : Layout(lcd),
+ _lMode(0, 0, "Survey Sweep"),
+ _lIns1(0, 4, "Hold SW1 any time"),
+ _lIns2(0, 5, "for Main Menu"),
+ _lSw1(11, 7, "Cancel"),
+ _lSw2(0, 7, "Sweep")
+{}
+
+LayoutSweepHelp::~LayoutSweepHelp() {}
+
+void LayoutSweepHelp::display() {
+ clear();
+ startUpdate();
+
+ writeLabel(_lMode);
+ writeLabel(_lIns1);
+ writeLabel(_lIns2);
+ writeLabel(_lSw1);
+ writeLabel(_lSw2);
+
+ endUpdate();
+}
+
diff --git a/Layout/LayoutSweepHelp.h b/Layout/LayoutSweepHelp.h
new file mode 100644
index 0000000..0ec0e45
--- /dev/null
+++ b/Layout/LayoutSweepHelp.h
@@ -0,0 +1,21 @@
+#ifndef __LAYOUTSWEEPHELP_H__
+#define __LAYOUTSWEEPHELP_H__
+
+#include "Layout.h"
+
+class LayoutSweepHelp : public Layout {
+ public:
+ LayoutSweepHelp(DOGS102* lcd);
+ ~LayoutSweepHelp();
+
+ void display();
+
+ private:
+ Label _lMode;
+ Label _lIns1;
+ Label _lIns2;
+ Label _lSw1;
+ Label _lSw2;
+};
+
+#endif