📄 main.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 + -