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

📄 main.c

📁 E:2410-S V4.0 06.08.21UCOS V5.0Exp16 键盘及LED驱动实验
💻 C
字号:
#include "inc/macro.h"
#include "inc/KeyBoard.h"
#include <string.h>
#include <stdio.h>
#include "inc/Uart.h"
#include "inc/lcd.h"
#include "inc/reg2410.h"
#include "inc/iic.h"
#include "inc/uhal.h"
#include "inc/lib.h"
#pragma import(__use_no_semihosting_swi)  // ensure no functions that use semihosting 

int main(void)
{   U8 key;
	ARMTargetInit();        // do target (uHAL based ARM system) initialisation //
	Key_init();
	while(1)
	{key=GetKey();
	 Led_IIC_init();
	 hudelay(100);
     IIC_Write(0x70, 0x0d, 0);
     IIC_Write(0x70, 0x10, key);
     hudelay(2000);
     Key_init_restor();
     hudelay(100);
	}
	
	return 0;			
}



⌨️ 快捷键说明

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