CC2530 GPIO port input configuration configuration steps

Chapter 1 Key Schematic Analysis

img

img

Chapter 2 GPIO Port Input Mode Configuration

img

img

Chapter 3 Detect button sample code

Sample code:

#include <ioCC2530.h>

//定义LED灯的端口
#define

Guess you like

Origin blog.csdn.net/xiaolong1126626497/article/details/131456530