From a17ec37a0c96a7d204c52ab4f24b11852cdb7f66 Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Wed, 18 Nov 2015 11:00:45 -0600 Subject: add placeholder functions for demo, survey single, and survey sweep modes and layouts for each - menu navigation is looking really good --- Layout/LayoutDemoHelp.cpp | 28 ++++++++++++++++++++++++++++ Layout/LayoutDemoHelp.h | 22 ++++++++++++++++++++++ Layout/LayoutSingleHelp.cpp | 26 ++++++++++++++++++++++++++ Layout/LayoutSingleHelp.h | 21 +++++++++++++++++++++ Layout/LayoutSweepHelp.cpp | 26 ++++++++++++++++++++++++++ Layout/LayoutSweepHelp.h | 21 +++++++++++++++++++++ 6 files changed, 144 insertions(+) create mode 100644 Layout/LayoutDemoHelp.cpp create mode 100644 Layout/LayoutDemoHelp.h create mode 100644 Layout/LayoutSingleHelp.cpp create mode 100644 Layout/LayoutSingleHelp.h create mode 100644 Layout/LayoutSweepHelp.cpp create mode 100644 Layout/LayoutSweepHelp.h (limited to 'Layout') 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 -- cgit v1.2.3