General purpose character LCD library. I found the TextLCD library had too many constraints and it didn\\\\\\\'t supply acces to all functions in the HD44780 chipset, so i decided to write my own character lcd library.

Revision:
2:18f6402fd025
Parent:
1:1349bedd5793
--- a/charLcd.h	Fri Mar 25 10:01:28 2011 +0000
+++ b/charLcd.h	Thu Apr 07 11:29:55 2011 +0000
@@ -23,6 +23,14 @@
             , LCD20x4   /**< 20x4 LCD panel */
         };
         
+        enum t_charlcd_entry_mode {
+            shift_inc = 4, 
+            noshift_inc = 3, 
+            shift_dec = 2, 
+            noshift_dec = 1, 
+        };
+        
+        
         //constructor for 4-bit lcd control
         charLcd(PinName rs, PinName rw, PinName en, PinName d7, PinName d6, PinName d5, PinName d4, LCDType type = LCD16x2);
         //constructor for 8-bit lcd control
@@ -32,7 +40,8 @@
         void charLcdResetLCD(void);
         void charLcdClear (void);
         void charLcdReturnHome();
-        void charLcdEntryMode(uint8 increment, uint8 shift);
+        //void charLcdEntryMode(uint8 increment, uint8 shift);
+        void charLcdEntryMode(t_charlcd_entry_mode entrymode);
         void charLcdDisplayOn(uint8 on);
         void charLcdCursor(uint8 cursor, uint8 blink);
         void charLcdShift(uint8 left, uint8 cursor);
@@ -70,6 +79,9 @@
         
         //LCD Data bus
         BusInOut cl_charLcdData;
+        
+
+        enum t_charlcd_function_set {NO_WIND = 4, NORTH_WIND = 3, SOUTH_WIND = 2, EAST_WIND = 1, WEST_WIND = 0};
 
 };