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

📄 main.c

📁 基于44B03的LCD驱动
💻 C
字号:
#include "option.h"
#include "def.h"
#include "44b.h"
#include "44blib.h"
#include "lcd.h"
#include "lcdlib.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,FS44B0X!");
    Uart_Printf("\nHello,nju!\n");   
    Uart_Printf("\nHello,Bioelectronics!");
    rINTCON=0x5;    //Non-vectored,IRQ enable,FIQ disable 
    rINTMOD=0x0;    //All=IRQ mode
    LCDstripe();
    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);
    	    //Test_LcdColor();
    	     	    break;
    	case 'b':
    	    Uart_Printf("\nYou Pressed 'b'");
    	    Led_Display(0x2);
    	    LCDstripe();
    	    break;
    	case 'c':
            Uart_Printf("\nYou Pressed 'c'");
    	    Led_Display(0x4);
    	    break;
    	case 'd':
            Uart_Printf("\nYou Pressed 'd'");
    	    Lcd_DispOFF();
    	    break;

    	case 0x1b:
    	    Led_Display(0x0);
    	    break;
    	default :
    	    break;
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -