Add lcdRead test. Please tell me what your display returns (esp. color displays)

This commit is contained in:
Stefan `Sec` Zehl 2011-08-22 01:22:35 +02:00
parent a22c2dd60b
commit bcd9978198
1 changed files with 16 additions and 2 deletions

View File

@ -17,7 +17,6 @@
/**************************************************************************/
//# MENU usb_storage
void msc_menu(void){
lcdClear();
@ -30,6 +29,22 @@ void msc_menu(void){
fsReInit();
};
//# MENU lcdread
void lcdrtest(void){
lcdClear();
lcdPrint("ID1:"); lcdPrintInt(lcdRead(128+64+16+8 +2 )); lcdNl();
lcdPrint("ID2:"); lcdPrintInt(lcdRead(128+64+16+8 +2+1)); lcdNl();
lcdPrint("ID3:"); lcdPrintInt(lcdRead(128+64+16+8+4 )); lcdNl();
lcdPrint("ID4:"); lcdPrintInt(lcdRead(128+64+16+8+4 +1)); lcdNl();
lcdPrint("Tmp:"); lcdPrintInt(lcdRead(128+64+16+8+4+2 )); lcdNl();
lcdPrint("VM:"); lcdPrintInt(lcdRead(128+64+16+8+4+2+1)); lcdNl();
// lcd_select(); mylcdWrite(0,128+32+8+4+1); lcd_deselect();
delayms(10);
lcdInit();
lcdRefresh();
while(!getInputRaw())delayms(10);
};
void blink_led0(void){
gpioSetValue (RB_LED0, 1-gpioGetValue(RB_LED0));
};
@ -66,4 +81,3 @@ void t_ani(void){
selectFile(fname, "LCD");
lcdShowAnim(fname,1000);
};