key.h
来自「51单片机控制产生4路标准舵机PWM(周期20ms」· C头文件 代码 · 共 18 行
H
18 行
/*--------------------------------------------------------------------------
KEY.H
KEY access macros and functions for the DE51-S by Windsun
--------------------------------------------------------------------------*/
#ifndef __KEY_H__
#define __KEY_H__
#define SW1_Pressed ((P1 & 0x01) == 0)
#define SW2_Pressed ((P1 & 0x02) == 0)
#define SW3_Pressed ((P1 & 0x04) == 0)
#define SW4_Pressed ((P1 & 0x08) == 0)
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?