主循环 Lcd7585_write_string(0,7,(char *)"LPC541x Board");
Lcd7585_write_string(0,6,(char *)" --by Shower.xu");
while(1)
{
delay_xms(15);
key_scan();
if(key_status)
{
if(key_status&KEY_SET_SHORT) Lcd7585_SetDisplay(DISP_NEGATIVE);else Lcd7585_SetDisplay(DISP_POSITIVE);
Lcd7585_write_string(12,3,(char *)"o");
if(key_status&KEY_UP_SHORT) Lcd7585_SetDisplay(DISP_NEGATIVE);else Lcd7585_SetDisplay(DISP_POSITIVE);
Lcd7585_write_string(12,4,(char *)"^");
if(key_status&KEY_DOWN_SHORT) Lcd7585_SetDisplay(DISP_NEGATIVE);else Lcd7585_SetDisplay(DISP_POSITIVE);
Lcd7585_write_string(12,2,(char *)"v");
if(key_status&KEY_LEFT_SHORT) Lcd7585_SetDisplay(DISP_NEGATIVE);else Lcd7585_SetDisplay(DISP_POSITIVE);
Lcd7585_write_string(2,3,(char *)"<");
if(key_status&KEY_RIGHT_SHORT) Lcd7585_SetDisplay(DISP_NEGATIVE);else Lcd7585_SetDisplay(DISP_POSITIVE);
Lcd7585_write_string(22,3,(char *)">");
|