【51單片機】LED點亮,閃爍以及流水燈實現的四種方法

【51單片機】LED點亮,閃爍以及流水燈實現的四種方法 點亮LEDweb #include <reg52.h> sbit LED=P2^0; void main() { while(1) { LED=0; } } LED閃爍(delay函數)數組 #include <reg52.h> sbit LED = P2^0;//管腳定義 void delay(uns
相關文章
相關標籤/搜索