thermferm/slcd.c

changeset 485
08543a9ca288
parent 484
7362ebd40f26
child 561
fcfc3dbe85fa
equal deleted inserted replaced
484:7362ebd40f26 485:08543a9ca288
134 putLCDsocket(fd, data); 134 putLCDsocket(fd, data);
135 } 135 }
136 136
137 137
138 138
139 void slcdCharDef(int fd, int index, unsigned char data[8]) 139 void slcdCharDef(int fd, int idx, unsigned char data[8])
140 { 140 {
141 int i; 141 int i;
142 142
143 putLCDsocket(fd, SLCD_CGRAM | ((index & 7) << 3)); 143 putLCDsocket(fd, SLCD_CGRAM | ((idx & 7) << 3));
144 for (i = 0 ; i < 8 ; ++i) 144 for (i = 0 ; i < 8 ; ++i)
145 putLCDsocket(fd, data[i]); 145 putLCDsocket(fd, data[i]);
146 } 146 }
147 147
148 148

mercurial