📄 app.c
字号:
#include "sm5k_lib.h"
#include "Uart.h"
void About( void )
{
SerialPrintf( "\n\n" );
SerialPrintf( "**********************************************************************\n" ) ;
SerialPrintf( "\t★SMP860运动控制平台应用程序开发示例程序\n" );
SerialPrintf( "\t★深圳市斯迈迪科技发展有限公司\n\n" );
SerialPrintf( "\t V2.1-2005.7.15 \n" ) ;
SerialPrintf( "**********************************************************************\n" ) ;
SerialPrintf( "\n" );
LCD_ClearDisplay();
LCD_DispHanziString("斯迈迪科技",0,21,0);
SerialPrintf( "正在初始化,请稍等...\n" ) ;
smp860_board_init(0);
SerialPrintf( "初始化完毕\n" ) ;
FPGA_Addr_KEY = 0; // clear key
}
void KeyQuery(void)
{
char ch;
ch = GetKey();
/*
*/
if(ch)
{
if(ch>0x20 && ch<0x80)
{
UART0_Printf( "Key '%c' Press!\n",ch) ;
LCD_Printf(2,1, "Key '%c' pressed!", ch );
}
else
{
UART0_Printf( "Key %d Press!\n",ch) ;
LCD_Printf(2,1, "Key %02d pressed!", ch );
}
}
switch(ch)
{
case '6':
TestReg();
break;
case '7':
TestMove();
break;
case '8':
TestInp();
break;
case '9':
TestContinueInp();
break;
default:
break;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -