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

📄 led.c

📁 57A49(320X240的LCD手册).pdf 原代码+驱动
💻 C
字号:
#include <string.h>
#include "..\inc\def.h"
#include "..\inc\44b.h"
#include "..\inc\44blib.h"
#include "..\inc\led.h"

void Test_Led(void)
{

    rSYSCFG=SYSCFG_8KB;
//#if (PLLON==1)
//    ChangePllValue(PLL_M,PLL_P,PLL_S);
//#endif
    Delay(0);  //calibrate Delay()
    Led_Display(7);
    Delay(1000);  //calibrate Delay()
    Led_Display(0);
    Delay(5000);  //calibrate Delay()
    Led_Display(7);
    Uart_Printf("\n start, press any key to return \n");
     while(!Uart_GetKey())
    {
	    Delay(5000);  //calibrate Delay()
	    Led_Display(1);
	    Delay(5000);  //calibrate Delay()
	    Led_Display(2);
	    Delay(5000);  //calibrate Delay()
	    Led_Display(4);
    }
}

⌨️ 快捷键说明

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