開關控制報警器 PROTEUS 和51單片機教程(附仿真文件+源代碼)

開關控制報警器 PROTEUS 和51單片機教程(附仿真文件+源代碼) 程序源代碼如下: /* 開關控制報警器 */ #include <reg51.h> typedef unsigned char uint8; typedef unsigned int uint16; #define K1_DOWN() ((P1 & 0x08) == 0x08) #define SPK() (P3 ^= 0x0
相關文章
相關標籤/搜索