[Libphidget-cvs-commits] CVS: libphidget/src/phidget++ CTextLCD.cc,1.1,1.2 CTextLCD.h,1.1,1.2
Status: Alpha
Brought to you by:
jstrohm
|
From: Jack S. <js...@us...> - 2002-12-16 04:54:59
|
Update of /cvsroot/libphidget/libphidget/src/phidget++
In directory sc8-pr-cvs1:/tmp/cvs-serv13753/phidget++
Modified Files:
CTextLCD.cc CTextLCD.h
Log Message:
TextLCD doesn't automatically turn on or off now. example program has more features and a few bug fixes
Index: CTextLCD.cc
===================================================================
RCS file: /cvsroot/libphidget/libphidget/src/phidget++/CTextLCD.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CTextLCD.cc 15 Dec 2002 05:05:28 -0000 1.1
--- CTextLCD.cc 16 Dec 2002 04:54:56 -0000 1.2
***************
*** 22,26 ****
throw runtime_error("Can't initialize a CTextLCD with a phidget that is not a text lcd");
- phidgetTextLCDOn(device());
METHOD_UNGUARD;
--- 22,25 ----
***************
*** 30,34 ****
{
METHOD_GUARD;
- phidgetTextLCDOff(device());
METHOD_UNGUARD;
}
--- 29,32 ----
***************
*** 50,52 ****
--- 48,60 ----
{
error(phidgetTextLCDWrite(device(), row,col,text.c_str()));
+ }
+
+ void CTextLCD::on()
+ {
+ phidgetTextLCDOn(device());
+ }
+
+ void CTextLCD::off()
+ {
+ phidgetTextLCDOff(device());
}
Index: CTextLCD.h
===================================================================
RCS file: /cvsroot/libphidget/libphidget/src/phidget++/CTextLCD.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CTextLCD.h 15 Dec 2002 05:05:28 -0000 1.1
--- CTextLCD.h 16 Dec 2002 04:54:56 -0000 1.2
***************
*** 36,39 ****
--- 36,41 ----
}
void sendText(string text, int row, int col);
+ void on();
+ void off();
};
|