character LCD module to I2C adapter Reference http://mbed.org/users/okini3939/notebook/i2c-lcd-library/

Dependents:   JRO_CR2 frdm_test JRO_DDSv2 JRO_DDSv2_rev2019

Fork of I2CLCD by Suga koubou

Revision:
3:0c291dbc7acc
Parent:
2:bc4583ce560e
--- a/I2CLCD.h	Sun Feb 27 14:28:40 2011 +0000
+++ b/I2CLCD.h	Mon Feb 23 20:37:14 2015 +0000
@@ -17,10 +17,31 @@
 
 #include "mbed.h"
 
+#define LCD_NHD_C022BiZ
 /**
  * @brief default I2C address
  */
-#define I2CLCD_ADDR 0x7c
+
+#ifdef LCD_NHD_C022BiZ
+
+#define I2CLCD_ADDR         0x7c
+#define INST_FUNC           0x38
+#define INST_SHIFT          0x10
+#define INST_DISPLAY        0x0f
+#define INST_CLEAR          0x01
+#define INST_ENTRY_MODE     0x06
+
+#else
+
+#define I2CLCD_ADDR         0x7c
+#define INST_FUNC           0x38
+#define INST_SHIFT          0x10
+#define INST_DISPLAY        0x0c
+#define INST_CLEAR          0x01
+#define INST_ENTRY_MODE     0x06
+
+#endif
+
 
 /**
  * @brief LCD type
@@ -58,16 +79,17 @@
     void locate (int, int);
     void cls ();
     void lcd_cfg (I2CLCDConfig);
-
+    void printf ( const char* text, int x=0, int y=0);
+    
 protected:
     virtual int _putc (int);
     virtual int _getc ();
-
+    
     int address (int, int);
     int rows ();
     int cols ();
     void init (int, I2CLCDType, I2CLCDConfig);
-    void lcd_out (char, char);
+    void lcd_out (char, char = 0);
     char lcd_in (char);
 
     I2C i2c;