main.c
来自「cypress的触摸按键模块介绍calibrating_capsense_wit」· C语言 代码 · 共 25 行
C
25 行
//----------------------------------------------------------------------------
// 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 + =
减小字号Ctrl + -
显示快捷键?