51单片机呼吸灯

51单片机呼吸灯

includedefineuintunsignedintsbitled1=P2^0;voiddelay(uintz){while(z–);}voidmain(){inti;while(1){for(

广告

电调方波凹凸比5ms;10ms

电调方波凹凸比5ms;10ms

includevoidDelay(unsignedinta);voidmain(){while(1){P2=0x11;Delay(80);P2=0x22;Delay(80);P2=0x0c;De

一段流水灯的单片机程序

includeincludevoiddelay(unsignedint);voidmain(void){P1=0xaa;while(1){P1=_crol_(P1,1);delay(500);}}vo

单颗LED指示灯的闪耀操控

单颗LED指示灯的闪耀操控

voidmain(){while(1){if(f1s==1){f1s=0;LedBlink(10,2);每个周期内闪烁两次}}}time1:time1*10ms=闪烁周期(定时时间基准10ms)tim

MSP430中止程序

MSP430中止程序

includemsp430g2553h>voidmain(void){WDTCTL=WDTPW+WDTHOLD;StopwatchdogtimerP1DIR

MSP430 AD转化12864液晶显示代码

MSP430 AD转化12864液晶显示代码

includemsp430g2553hinclude12864hunsignedinti,Vo;voidmain(void){WDTCTL=WDTPW+WDTHOLD;StopWDTADC10

三种类型单片机点亮一只发光二极管程序

三种类型单片机点亮一只发光二极管程序

***************STC89C52RC*************includereg52h>sbitLED=P1^0;voidmain(){LED=0;while(1);}*****

联系我们

联系我们

在线咨询: QQ交谈

邮箱: kf@86ic.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部