1.按键引脚的定义。
The key1 is connected to P0.28 pin, and key2 is connected to P0.29 pin.
1.蜂鸣器引脚的定义。
BLE SENSORS TAG board provides a passive buzzer, and its frequency is about 1KHz. The buzzer is drove by 2N7002 MOS transistor. The control port is connected to P0.22 pin .
之后实现功能是key1按下,蜂鸣器响起,蓝色灯亮;key1按下,蜂鸣器响起,红色灯亮,