thermferm/slcd.c

changeset 484
7362ebd40f26
parent 427
e8e548922e31
child 485
08543a9ca288
--- a/thermferm/slcd.c	Mon Feb 22 19:24:49 2016 +0100
+++ b/thermferm/slcd.c	Thu Feb 25 20:12:27 2016 +0100
@@ -136,9 +136,14 @@
 
 
 
-//void slcdCharDef(int fd, int index, unsigned char data[8])
-//{
-//}
+void slcdCharDef(int fd, int index, unsigned char data[8])
+{
+    int		i;
+
+    putLCDsocket(fd, SLCD_CGRAM | ((index & 7) << 3));
+    for (i = 0 ; i < 8 ; ++i)
+	putLCDsocket(fd, data[i]);
+}
 
 
 

mercurial