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

📄 main_for_goat.c

📁 CODE for embedded C ,hand coding version
💻 C
字号:
/*--------------------------------------------------------------*-
 Main.C (v1.00)
 Author:06_Digital_Media
 All Right Reserved
------------------------------------------------------------------
 A 'Switch count' Program for the 8051 
-*---------------------------------------------------------------*/

#include "Main.H"
#include "Port.H"
#include "Switch_wait.H"
#include "Display_count.H"

/*---------------------------------------------------------------*/
void main(void){

  tByte Switch_presses = 0;
  //Init functions
  SWITCH_Init();
  DISPLAY_COUNT_Init();
  while(1){
   if(SWITCH_Get_Input(30)==SWITCH_PRESSED){
    Switch_presses++ ;
   }
   DISPLAY_COUNT_Update(Switch_presses);
  }
}


⌨️ 快捷键说明

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