?? main.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 + -