Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AdaFruit_RGBLCDShield MCP23017 mbed RTclock
Fork of MCP_test by
module.h
00001 #ifndef __MODULE_H__ 00002 #define __MODULE_H__ 00003 00004 #ifndef _countof 00005 #define _countof(a) (sizeof(a) / sizeof(a[0])) 00006 #endif 00007 00008 class Module 00009 { 00010 public: 00011 enum EModes 00012 { 00013 eModeMenu = 0, 00014 eModeSelect, 00015 eModeChange, 00016 eModeLast 00017 }; 00018 00019 public: 00020 Module(Serial & in_cDisplay); 00021 virtual ~Module(); 00022 00023 virtual bool canRefresh() { return false; } 00024 virtual void change 00025 ( 00026 size_t in_nIndex, 00027 bool in_bUp 00028 ) 00029 { ; } 00030 virtual int getCursorOffset(size_t & inout_nIndex) 00031 { return -1; } 00032 virtual void onModeChange(EModes in_eMode) 00033 { ; } 00034 virtual void show(bool in_bRefresh) = 0; 00035 00036 protected: 00037 Serial & m_cDisplay; 00038 }; 00039 00040 #endif /* __MODULE_H__ */
Generated on Thu Jul 14 2022 00:55:23 by
1.7.2
