Wim Huiskamp
/
mbed_PT6964
Test program for Princeton PT6964 LED controller library.
See here for more information.
Revision 3:d7990de75130, committed 2016-01-14
- Comitter:
- wim
- Date:
- Thu Jan 14 20:10:05 2016 +0000
- Parent:
- 2:c6897ab055a2
- Commit message:
- Refactored display and keyboard defines
Changed in this revision
PT6964.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c6897ab055a2 -r d7990de75130 PT6964.lib --- a/PT6964.lib Sat Jan 09 13:40:23 2016 +0000 +++ b/PT6964.lib Thu Jan 14 20:10:05 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/wim/code/PT6964/#1adf993a3e34 +https://developer.mbed.org/users/wim/code/PT6964/#eaf2f5d1af34
diff -r c6897ab055a2 -r d7990de75130 main.cpp --- a/main.cpp Sat Jan 09 13:40:23 2016 +0000 +++ b/main.cpp Thu Jan 14 20:10:05 2016 +0000 @@ -146,12 +146,6 @@ PT6964::DisplayData_t bye_str = {0x7C,0x00, 0xEC,0x00, 0x3C,0x01, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00}; PT6964::DisplayData_t hello_str = {0xDC,0x00, 0x3C,0x01, 0x38,0x00, 0x38,0x00, 0xF8,0x01, 0x00,0x00, 0x00,0x00}; PT6964::DisplayData_t tst_str; -#if(0) -PT6964::DisplayData_t hello1_str = {0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0xF8,0x03, 0x00,0x00, 0x00,0x00}; -PT6964::DisplayData_t hello2_str = {0x00,0x00, 0x00,0x00, 0x00,0x00, 0xF8,0x03, 0x00,0x00, 0x00,0x00, 0x00,0x00}; -PT6964::DisplayData_t hello3_str = {0x00,0x00, 0x00,0x00, 0xF8,0x03, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00}; -PT6964::DisplayData_t hello4_str = {0x00,0x00, 0xF8,0x03, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00}; -#endif PT6964::DisplayData_t hello1_str = {0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x30,0x00, 0x00,0x00, 0x00,0x00}; PT6964::DisplayData_t hello2_str = {0x00,0x00, 0x00,0x00, 0x00,0x00, 0xE8,0x02, 0x00,0x00, 0x00,0x00, 0x00,0x00}; PT6964::DisplayData_t hello3_str = {0x00,0x00, 0x00,0x00, 0x78,0x02, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00}; @@ -187,70 +181,25 @@ if (keydata[0] == 0x01) { //sw1 L/R PT6964.cls(); PT6964.writeData(hello1_str); - -#if(0) - for (int idx=0; idx < PT6964_DISPLAY_MEM;idx++){ - tst_str[idx]=0x00; - } -// tst_str[0]=0x01; //LD2 -// tst_str[0]=0x10; //DVD -// tst_str[1]=0x01; // MP4 -// tst_str[2]=0x08; // D4 - tst_str[2]=0x80; // E4 - PT6964.writeData(tst_str); -#endif + } if (keydata[0] == 0x02) { //sw2 Stop PT6964.cls(); PT6964.writeData(hello2_str); -#if(0) - for (int idx=0; idx < PT6964_DISPLAY_MEM;idx++){ - tst_str[idx]=0x00; - } -// tst_str[0]=0x02; //LD1 -// tst_str[0]=0x20; // pause -// tst_str[1]=0x02; // MP3 -// tst_str[2]=0x10; // C4 - tst_str[3]=0x01; // F4 - PT6964.writeData(tst_str); -#endif } if (keydata[0] == 0x08) { //sw4 Play PT6964.cls(); PT6964.writeData(hello3_str); - -#if(0) - for (int idx=0; idx < PT6964_DISPLAY_MEM;idx++){ - tst_str[idx]=0x00; - } -// tst_str[0]=0x04; // nc -// tst_str[0]=0x40; // Play arrow -// tst_str[2]=0x01; // nc -// tst_str[2]=0x20; // B4 - tst_str[3]=0x02; // G4 - PT6964.writeData(tst_str); -#endif - + } if (keydata[0] == 0x10) { //sw3 Open PT6964.cls(); PT6964.writeData(hello4_str); -#if(0) - for (int idx=0; idx < PT6964_DISPLAY_MEM;idx++){ - tst_str[idx]=0x00; - } -// tst_str[0]=0x08; //CD -// tst_str[0]=0x80; // colon -// tst_str[2]=0x02; // nc -// tst_str[2]=0x40; // A4 - tst_str[3]=0x04; // nc - PT6964.writeData(tst_str); -#endif } } //if