📄 eluosi.c
字号:
#include "eluosi.h"
#include "in430.h"
/*==================================================================
* Function : eLuosi
* Description : 主程序
* Input Para : void ,触摸退出,不完善
* Output Para : void
* Return Value : void
==================================================================*/
void eLousi(void)
{
GameLeave = 3;
CCR0 = 50000;//置入计数初值
TACTL |= 0x20;//连续计数模式
CCTL0 = CCIE;//CCR0中断使能
lcd_display_full_screen_color(0x0000);
for(;;)
{
while(bGameOver)
{
bGameOver = false;
return;
}
}
}
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A(void)
{
lcd_display_full_screen_color(0x0000);
if(GameLeave==0)
//UpDataGame();游戏状态刷新
bGameOver = true;
CCR0 = 50000;
GameLeave--;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -