[Libphidget-cvs-commits] CVS: libphidget/src/examples phidget_c.c,1.13,1.14
Status: Alpha
Brought to you by:
jstrohm
From: Jack S. <js...@us...> - 2002-12-14 18:23:09
|
Update of /cvsroot/libphidget/libphidget/src/examples In directory sc8-pr-cvs1:/tmp/cvs-serv576/examples Modified Files: phidget_c.c Log Message: Fully implemented writing strings to the Text LCD and added more commands, clear, on, and off. Example uses all of these Index: phidget_c.c =================================================================== RCS file: /cvsroot/libphidget/libphidget/src/examples/phidget_c.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** phidget_c.c 14 Dec 2002 06:49:43 -0000 1.13 --- phidget_c.c 14 Dec 2002 18:23:06 -0000 1.14 *************** *** 112,125 **** { int a,b,c; ! // Close that phidget for (c=0;c<4;c++) { for (a=0;a<8;a++) for (b=0;b<4;b++) ! phidgetTextLCDWrite(dev, 1+b, a," Tst "); for (a=0;a<8;a++) for (b=0;b<4;b++) ! phidgetTextLCDWrite(dev, 1+b, 8-a," Tst "); } } --- 112,129 ---- { int a,b,c; ! ! phidgetTextLCDOn(dev); ! phidgetTextLCDClear(dev); for (c=0;c<4;c++) { for (a=0;a<8;a++) for (b=0;b<4;b++) ! phidgetTextLCDWrite(dev, b, a," Test"); for (a=0;a<8;a++) for (b=0;b<4;b++) ! phidgetTextLCDWrite(dev, b, 7-a,"Test "); } + phidgetTextLCDClear(dev); + phidgetTextLCDOff(dev); } |