標(biāo)題:
PIC單片機(jī)實(shí)現(xiàn)流水燈程序
[打印本頁(yè)]
作者:
xiaos
時(shí)間:
2015-4-3 23:30
標(biāo)題:
PIC單片機(jī)實(shí)現(xiàn)流水燈程序
#include<pic.h>//流水燈20091028 22:00
#define uchar unsigned char
#define uint unsigned int
__CONFIG(0x3B31);
void delay(uint x)
{
uint a,b;
for(a=x;a>0;a--)
for(b=110;b>0;b--);
}
void main()
{
uchar i,temp;
TRISA=0x00;
while(1)
{
temp=1;
for(i=0;i<6;i++)
{
PORTA=~temp;//
temp=temp<<1;//
delay(200);
}
}
}
作者:
lxz335
時(shí)間:
2017-12-1 13:35
這不是老郭的程序嗎
作者:
量子工業(yè)
時(shí)間:
2023-10-25 21:28
程序談不上誰(shuí)的誰(shuí)的啊,如同A說1+2=3,B也是,不能說B抄A的,計(jì)算機(jī)程序,和人說話語(yǔ)言類似,很難鑒別啊
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1