📄 main.c
字号:
#include "spce061a.h"
#include "A2000.h"
#include "Sound.h"
#include "Key.h"
#include "operation.h"
extern int Putin();
extern int Choose() ;
extern void Oper(int , int , int ) ;
int main()
{
unsigned int KeyCode;
unsigned int Begin =0 ;
unsigned int ch ;
int x , y ;
Key_Init() ;
while(1){
KeyCode = Key_Get();
switch (KeyCode){
case KEY_1:{
if (Begin==0){
PlaySnd(Start) ;
Begin=1 ;
}else {
PlaySnd(Continue) ;
}
PlaySnd(Choice);
ch=Choose() ;
PlaySnd(In) ;
x=Putin() ;
y=Putin() ;
Oper(x, y , ch);
PlaySnd(Whether) ;
break ;
}
case KEY_LONG_1:
PlaySnd(End) ;
break ;
}
*P_Watchdog_Clear = 0x01; // 清看门狗
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -