2019-04-15 17:56发布 生成海报
#include sbit beep=P0^1; void main(void) { beep=1; }
#include sbit beep=P0^1; //延时约250us void delay(void) { unsigned char i; for(i=0; i<125; i++) { ; } } void main(void) { while(1) { beep=1; delay(); beep=0; delay(); } }