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

📄 main.c

📁 cypress的触摸按键模块介绍calibrating_capsense_with_the_csr_user_module___an2355_13.
💻 C
字号:
//----------------------------------------------------------------------------
// Cap Touch code for Application Note
//
// Author:	Darrin Vallis
//----------------------------------------------------------------------------

#include <m8c.h>        					// part specific constants and macros
#include "PSoCAPI.h"    					// PSoC API definitions for all User Modules
#include "main.h"

void main()
{	
	Setup_IO();								//Set up GPIO for address inputs
	Setup_I2C();							//Configure and start I2C engine
	Setup_Touch();							//Configure cap touch	
	M8C_EnableGInt;							//Start everything
					
    while(1)
    {
    	Scan_Buttons();						//Switch data in *SENSE_baSwOnMask	
		Set_LEDS();							//Turn on LEDs
		Set_Interrupt_Pin();				//Set or clear int pin
	}	
}

⌨️ 快捷键说明

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