E3 Designers / Menu

Dependents:   mbed_escm2000

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers EditTimeMenu.h Source File

EditTimeMenu.h

00001 /**************************************************************************
00002  * @file     EditTimeMenu.h
00003  * @brief    Base class for implementing the Edit Time Menu display
00004  * @version: V1.0
00005  * @date:    9/17/2019
00006 
00007  *
00008  * @note
00009  * Copyright (C) 2019 E3 Design. All rights reserved.
00010  *
00011  * @par
00012  * E3 Designers LLC is supplying this software for use with Cortex-M3 LPC1768
00013  * processor based microcontroller for the ESCM 2000 Monitor and Display.  
00014  *  *
00015  * @par
00016  * THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
00017  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
00018  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
00019  * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
00020  * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
00021  *
00022  ******************************************************************************/
00023 #ifndef EDITTIME_MENU_H
00024 #define EDITTIME_MENU_H
00025 
00026 #include "mbed.h"
00027 #include "Menu.h"
00028 #include "LCD.h"
00029 
00030 class EditTimeMenu : public Menu 
00031 {
00032    public :
00033         int row;
00034         int column;
00035         
00036         int active_selection;
00037         int hours;
00038         int mins;
00039         int secs;
00040         
00041         int months;
00042         int days;
00043         int years;
00044         
00045         EditTimeMenu(char* id);
00046    
00047         void display(LCD * lcd);
00048     
00049         virtual void pressMode();        
00050         virtual void pressSet();    
00051         virtual void pressDown();    
00052         virtual void pressUp();    
00053         virtual void init();
00054         
00055         
00056         virtual char* getText() { return "Edit Time"; }
00057 };
00058 
00059 
00060 #endif