?? main.c
字號:
#include "option.h"
#include "def.h"
#include "44b.h"
#include "44blib.h"
void Main(void)
{
U8 aa;
rSYSCFG=CACHECFG; // Using 8KB Cache//
Port_Init();
Led_Display(0x0);
Uart_Init(0,57600);
Delay(10);
Uart_Select(0); //Select UART0
Uart_Printf("\nHello, DJT44B0X !");
Uart_Printf("\nPlease Press 'a'or'b'or'c'");
while(1){
aa= Uart_Getch();
switch(aa)
{
case 'a':
Uart_Printf("\nYou Pressed 'a'");
Led_Display(0x1);
break;
case 'b':
Uart_Printf("\nYou Pressed 'b'");
Led_Display(0x2);
break;
case 'c':
Uart_Printf("\nYou Pressed 'c'");
Led_Display(0x4);
break;
case 0x1b:
Led_Display(0x0);
break;
default :
break;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -