Move lcdread menu entry to debug loadable

(add: lcdInit EXPORT, lcdRead needs it)
This commit is contained in:
Stefan `Sec` Zehl 2011-12-20 01:23:00 +01:00
parent b10f12ba1f
commit a005118640
2 changed files with 18 additions and 1 deletions

View File

@ -124,4 +124,4 @@ i2cEngine
i2cInit
timer32Callback0
lcdRead
lcdInit

View File

@ -25,6 +25,7 @@ void Qstatus(void);
void getsp(void);
void uptime(void);
void uuid(void);
void lcdrtest(void);
static const struct MENU submenu_debug={ "debug", {
{ "ChkBattery", &ChkBattery},
@ -33,6 +34,7 @@ static const struct MENU submenu_debug={ "debug", {
{ "ChkFunk", &ChkFunk},
{ "Qstatus", &Qstatus},
// { "ShowSP", &getsp},
{ "lcdrtest", &lcdrtest},
{ "Uptime", &uptime},
{ "Uuid", &uuid},
{NULL,NULL}
@ -314,3 +316,18 @@ void ChkFunk(){
while(!getInputRaw())work_queue();
};
// //# 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);
};