Add lcdRead test. Please tell me what your display returns (esp. color displays)
This commit is contained in:
parent
a22c2dd60b
commit
bcd9978198
|
@ -17,7 +17,6 @@
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
//# MENU usb_storage
|
//# MENU usb_storage
|
||||||
void msc_menu(void){
|
void msc_menu(void){
|
||||||
lcdClear();
|
lcdClear();
|
||||||
|
@ -30,6 +29,22 @@ void msc_menu(void){
|
||||||
fsReInit();
|
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){
|
void blink_led0(void){
|
||||||
gpioSetValue (RB_LED0, 1-gpioGetValue(RB_LED0));
|
gpioSetValue (RB_LED0, 1-gpioGetValue(RB_LED0));
|
||||||
};
|
};
|
||||||
|
@ -66,4 +81,3 @@ void t_ani(void){
|
||||||
selectFile(fname, "LCD");
|
selectFile(fname, "LCD");
|
||||||
lcdShowAnim(fname,1000);
|
lcdShowAnim(fname,1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue