Single-chip microcomputer-four buttons control water lamp

Single-chip microcomputer-four buttons control water lamp

Code

代码片.

#include "reg51.h"
sbit key1 = P2 ^ 0;
sbit key2 = P2 ^ 1;
sbit key3 = P2 ^ 2;
sbit key4 = P2 

Guess you like

Origin blog.csdn.net/weixin_48450741/article/details/112462944