{
case 17:
Uart_Putc(3,0x7e);Uart_Putc(3,0xd0);Uart_Putc(3,1);Uart_Putc(3,0xff);
break;//1 显示相应的按键值
case 18:
Uart_Putc(3,0x7e);Uart_Putc(3,0xd0);Uart_Putc(3,2);Uart_Putc(3,0xff);
break;//2
case 19:
Uart_Putc(3,0x7e);Uart_Putc(3,0xd0);Uart_Putc(3,3);Uart_Putc(3,0xff);
break;//3
case 20:
Uart_Putc(3,0x7e);Uart_Putc(3,0xd0);Uart_Putc(3,4);Uart_Putc(3,0xff);
break;//4
case 21:
Uart_Putc(3,0x7e);Uart_Putc(3,0xd0);Uart_Putc(3,5);Uart_Putc(3,0xff);
break;//5
case 22:
Uart_Putc(3,0x7e);Uart_Putc(3,0xd0);Uart_Putc(3,6);Uart_Putc(3,0xff);
break;//6
case 23:
Uart_Putc(3,0x7e);Uart_Putc(3,0xd0);Uart_Putc(3,7);Uart_Putc(3,0xff);
break;//7
case 24:
Uart_Putc(3,0x7e);Uart_Putc(3,0xd0);Uart_Putc(3,8);Uart_Putc(3,0xff);
break;//8
case 25:
Uart_Putc(3,0x7e);Uart_Putc(3,0xd0);Uart_Putc(3,9);Uart_Putc(3,0xff);
break;//9
case 16:
Uart_Putc(3,0x7e);Uart_Putc(3,0xd0);Uart_Putc(3,0);Uart_Putc(3,0xff);
break;//0
case 8:
if(currentflag!=8)
currentflag=currentflag<<1;
Uart_Putc(3,0x7e);Uart_Putc(3,0xb2);Uart_Putc(3,0xff); //右移
break;// up
case 7:
if(currentflag!=1)
currentflag=currentflag>>1;
Uart_Putc(3,0x7e);Uart_Putc(3,0xb1);Uart_Putc(3,0xff); //左移
break; //down
}