⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c.bak

📁 基于44B03的LCD驱动
💻 BAK
字号:
#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,115200);
    Delay(10);
    Uart_Select(0); //Select UART0

    Uart_Printf("\nHello,FS44B0X!");

    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 + -