干货,干货,代码可用,51单片机按键控制PWM呼吸灯,#include
#define uchar unsigned char
#define uint unsigned int
sbit s1=P3^0;
sbit s2=P3^4;
sbit s3=P3^5;
sbit beep=P2^3;
uint pwm;
uint num;
//延时
void delayms(uint t)
{
uchar x,y;
for(x=t;x>0;x--)
2019-12-21 21:49:03
1KB
PWM
1