TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface

Fork of TextLCD by Simon Ford

Revision:
8:dde7f427feda
Parent:
7:44f34c09bd37
Child:
10:b91bc4431350
--- a/TextLCD.cpp	Sat Dec 04 11:29:57 2010 +0000
+++ b/TextLCD.cpp	Sun Feb 17 20:23:41 2013 +0000
@@ -157,3 +157,28 @@
             return 2;
     }
 }
+
+/*
+ 
+@param cgramloc cgram location from 0-7
+ 
+@param *data char array
+ 
+@param cgrpos cgrampostion 0x00-0x07
+ 
+@param x,y location coordinates
+ 
+*/
+ 
+void TextLCD::putCustomChar(int cgramloc, char *data,int cgrpos,int x,int y){
+ 
+  writeCommand(0x40+((cgramloc&0x07)<<3)); //Set CG-RAM address
+  
+  for (int i=0; i<8; i++) {
+    writeData(*data++); 
+  }
+ 
+  locate(x,y);
+  writeData(cgrpos);
+ 
+}