![](/media/cache/group/download_IjbieK2.png.50x50_q85.png)
demo new haven display
Dependencies: LCD Menu ButtonCtrl TimeManagement EventLog AddressMap emic2
ESCM 2000 Control and Display application provides interface for the LPC1768 processor boards with the ECSM 2000 system.
This application implements SW interface : - RX 485 Receive from physical system - RX 485 Interface to send toECOM / ESCM board - CAN Interface to send to ECOM / ESCM board - 4x40 LCD with menu controls - RTC configuration -EMIC2 Sound Card - GPIO Extender to push buttons etc
Diff: ESCMControlApp.h
- Revision:
- 3:ecaf9963341b
- Child:
- 5:65f21c0b6b79
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ESCMControlApp.h Thu Jul 25 00:45:01 2019 +0000 @@ -0,0 +1,58 @@ +#ifndef _ESCM_CONTROL_APP_ +#define _ESCM_CONTROL_APP_ + + +#include "mbed.h" +#include "Menu.h" +#include "Navigator.h" +#include "Selection.h" +#include "LCD.h" +#include "AddressMap.h" +#include "EventLog.h" +#include "TimeUtilities.h" + +#include "emic2.h" + + +extern LCD lcd; + +extern ESCM_EventLog escmEventLog; + +extern RealTimeClock rtc; + +extern Serial rs485port1; +extern DigitalOut rs485port1mode; + +extern Serial rs485port2; +extern DigitalOut rs485port2mode; + +extern CAN canport; +extern DigitalOut canportmode; + +extern emic2 speaker; + + +class ESCMControlApp +{ + + public: + Menu getAddressMenu(); + + void init(void); + void update(void); + + //void rx485Message(); + void tx485Message(int address); + void txCanMessage501 (int address); + void txCanMessage502 (int address); + + static void say (char *format, ...); + + int dataRxCnt; + int cur_address; + + + char fault[4]; +}; + +#endif \ No newline at end of file