Update of /cvsroot/libphidget/libphidget/src/libphidget
In directory sc8-pr-cvs1:/tmp/cvs-serv5321/libphidget
Modified Files:
phidget.c
Log Message:
Cooler LCD text example
Index: phidget.c
===================================================================
RCS file: /cvsroot/libphidget/libphidget/src/libphidget/phidget.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** phidget.c 14 Dec 2002 06:42:44 -0000 1.20
--- phidget.c 14 Dec 2002 06:49:43 -0000 1.21
***************
*** 1491,1496 ****
buffer[4] = 0xB0; // Set the address pointer
buffer[5] = 0x30 + (row - 1) * 0x10 + 0x80+col;
! buffer[6] = 0; // testing
! buffer[7] = 5; // testing - this makes it work, not sure why
phidgetWrite(phidgetDevice,buffer,8);
--- 1491,1495 ----
buffer[4] = 0xB0; // Set the address pointer
buffer[5] = 0x30 + (row - 1) * 0x10 + 0x80+col;
! buffer[7] = 6; // testing - this makes it work, not sure why
phidgetWrite(phidgetDevice,buffer,8);
***************
*** 1502,1520 ****
buffer[4]=str[3];
buffer[5]=str[4];
-
- //buffer[6]='5';
- //buffer[7]='1';
-
buffer[6]=1; // go back into command mode
! //buffer[7]=8; // this works but not sure why
!
! buffer[7]=6;
phidgetWrite(phidgetDevice,buffer,8);
-
- //for (i=0;i<10;i++) buffer[i]=0;
- //buffer[0]=0x01;
- //buffer[7]=0;
- ////buffer[8]=1;
- //phidgetWrite(phidgetDevice,buffer,8);
}
--- 1501,1507 ----
buffer[4]=str[3];
buffer[5]=str[4];
buffer[6]=1; // go back into command mode
! buffer[7]=7;
phidgetWrite(phidgetDevice,buffer,8);
}
|