Baseline for testing

Revision:
1:0f1dffc6103a
Parent:
0:c428f1d60316
Child:
2:73721d9e0056
--- a/LCD.h	Thu Jul 25 00:43:40 2019 +0000
+++ b/LCD.h	Thu Sep 12 11:27:29 2019 +0000
@@ -4,7 +4,6 @@
 
 #include "mbed.h"
 
-
 /*
  * LCD commands.
  */
@@ -77,78 +76,83 @@
 
 class LCD
 {
-    public:
+public:
+
+    LCD();
     
-        LCD();
-        virtual ~LCD();
-        
-        
-        void init(void) ;
-        
-        void writeByte1(int value);
-        void writeByte2(int value);
-        
-        void command1(char i) ;
-        void command2(char i) ;
-        
-        void writedata1(char i) ;
-        void writedata2(char i) ;
-        
-        void nextline1();
-        void nextline2();
-        void display(char *show);
-        
-        
-        int isBusy(int e1,int e2);
-        
-        int isBusy1(void);
-        int isBusy2(void);
-        
-        void waitBusy();
-        
-        void cls() { clear (1,1); };
-        void clear(int e1,int e2);
-        void locate(int row, int column);
-                
-        void putc(const char c);
-        void printf(const char* fmt, ...);
-        
-        void write(const char* text);
-        void writeLine(int line, const char* text );
-        void writeCharacter(const char c, int row, int column);
-        void writeCharacters(const char* text, int row, int column);
-        
-        void writeCommand(char value,int e1,int e2);
-        void writeChar   (char value,int e1,int e2);
-        void writeData   (char value,int e1,int e2);
-        
-        void character (int row, int column, char c);
-        
-        int rows() {return 4;}
-        
-        int columns() {return 40;}
-        
-        int address(int row, int column);
-        
-        /* for debugging and development */
-        void dump(Serial * pc);
-        
-        void setCursorMode (int mode);
-                
-    private:
-            DigitalInOut LCD_E1;
-            DigitalInOut LCD_E2;
-            DigitalInOut LCD_RS;
-            DigitalInOut LCD_RW;
-                        
-            BusInOut LCD_DATA;
-            
-            int _row;
-            int _column;
-            char isOutput;
-            
-            char displayBuffer[4][40];
-            
+    virtual ~LCD();
+
+    void init(void) ;
+
+    void display(char *show);
+
+    void cls();
+
+    void locate(int row, int column);
+
+    void putc(const char c);
+
+    void printf(const char* fmt, ...);
+
+    int rows()
+    {
+        return 4;
+    }
+
+    int columns()
+    {
+        return 40;
+    }
+
+private:
+    void setCursorMode (int mode);
+
+    void clear(int e1,int e2);
+
+    void writeByte1(int value);
+    void writeByte2(int value);
+
+    void command1(char i) ;
+    void command2(char i) ;
+
+    void writedata1(char i) ;
+    void writedata2(char i) ;
+
+    void nextline1();
+    void nextline2();
+
+    int isBusy(int e1,int e2);
+
+    int isBusy1(void);
+    int isBusy2(void);
+
+    void waitBusy();
+
+    void write(const char* text);
+    void writeLine(int line, const char* text );
+    void writeCharacter(const char c, int row, int column);
+    void writeCharacters(const char* text, int row, int column);
+
+    void writeCommand(char value,int e1,int e2);
+    void writeChar   (char value,int e1,int e2);
+    void writeData   (char value,int e1,int e2);
+
+    int address(int row, int column);
+
+    void character (int row, int column, char c);
+
+    DigitalInOut LCD_E1;
+    DigitalInOut LCD_E2;
+    DigitalInOut LCD_RS;
+    DigitalInOut LCD_RW;
+
+    BusInOut LCD_DATA;
+
+    Mutex mutex;
+
+    int _row;
+    int _column;
+    char isOutput;
 
 };