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

Revision:
0:91f25a0f819c
Child:
1:a16e53a9e991
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jun 16 00:34:30 2019 +0000
@@ -0,0 +1,46 @@
+#include "mbed.h"
+#include "LCD.h"
+
+
+Serial pc(USBTX, USBRX); // tx, rx
+
+LCD   MyLCD;
+
+int main() {
+        
+    pc.printf("\n\r");
+    pc.printf("=====================================\n\r");
+    pc.printf("= LCD TEST                          =\n\r");
+    pc.printf("=====================================\n\r");
+
+    MyLCD.init();
+    MyLCD.display("Initializing System...");
+    
+    //MyLCD.locate(1,1);
+    //MyLCD.write("Initializing System...");
+    
+    pc.printf("=====================================\n\r");
+    pc.printf("= Launch                            =\n\r");
+    pc.printf("=====================================\n\r");
+    //myLcd.clear(1,1);
+    //MyLCD.writeCharacters("ABCDEFGHIJKLMNOPQRSTUVWXYZ..............",0,0);
+    //MyLCD.writeCharacters("----------------------------------------",1,0);
+    //MyLCD.writeCharacters("abcdefghijklmnopqrstuvwxyz!!!!!!!!!!!!!!",2,0);
+    //MyLCD.writeCharacters("0123456789012345678901234567890123456789",3,0);
+    
+    
+    MyLCD.writeCommand((char)0x80,1,0); //address 0 position (=0,=0)
+    MyLCD.writeData   ((char)0x55,1,0); //x
+    
+    int i=0;
+    while(1) {
+        wait_ms(10);
+        MyLCD.writeCommand(0x80,1,0); //Turn on display; no cursor 
+        MyLCD.writeData   (0x55,1,0); //Turn on display; no cursor 
+        //MyLCD.locate(0,1);
+        //MyLCD.writeCharacter('X',0,i++);
+        //if(i>MyLCD.columns())
+        //    i=i;
+    }
+}
+