diff --git a/firmware/applications/final/util.c b/firmware/applications/final/util.c index 268ea33..1701bcc 100644 --- a/firmware/applications/final/util.c +++ b/firmware/applications/final/util.c @@ -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); }; -