diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-12-04 09:53:21 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-12-04 09:53:21 -0600 |
commit | 41a5c0de1343c4a4163c7096ea33bbfd6c3e84cb (patch) | |
tree | aa964ee70557217d409a2fb44546785a543aaeb0 /Mode/ModeDemo.h | |
parent | c52f29331e76857b4bbab72829479a04e19318cf (diff) | |
download | mtdot-box-evb-factory-firmware-41a5c0de1343c4a4163c7096ea33bbfd6c3e84cb.tar.gz mtdot-box-evb-factory-firmware-41a5c0de1343c4a4163c7096ea33bbfd6c3e84cb.tar.bz2 mtdot-box-evb-factory-firmware-41a5c0de1343c4a4163c7096ea33bbfd6c3e84cb.zip |
implement demo mode logic - still need to add sensor data
Diffstat (limited to 'Mode/ModeDemo.h')
-rw-r--r-- | Mode/ModeDemo.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Mode/ModeDemo.h b/Mode/ModeDemo.h new file mode 100644 index 0000000..b2aaf21 --- /dev/null +++ b/Mode/ModeDemo.h @@ -0,0 +1,39 @@ +#ifndef __MODEDEMO_H__ +#define __MODEDEMO_H__ + +#include "Mode.h" +#include "LayoutHelp.h" +#include "LayoutDemoSampling.h" + +class ModeDemo : public Mode { + public: + ModeDemo(DOGS102* lcd, ButtonHandler* buttons, mDot* dot, LoRaHandler* lora, GPSPARSER* gps); + ~ModeDemo(); + + bool start(); + + private: + void displayHelp(); + + typedef enum { + show_help = 0, + sampling, + success, + failure + } state; + + typedef enum { + trigger = 0, + interval + } mode; + + LayoutHelp _help; + LayoutDemoSampling _sam; + SensorItem _data; + mode _mode; + Timer _send_timer; + uint8_t _interval; + static const uint32_t _intervals[]; +}; + +#endif |