1 頁 (共 1 頁)

1051's 霹靂燈 BAT檔

文章發表於 : 週一 7月 28, 2008 8:57 pm
閒閒魚
@echo off
rem ZC1051 LED BAR demo
rem ------------------------
rem turn off all LED at RESET
echo 00000000 > f:\port0.txt
echo 00000000 > f:\port1.txt
echo 00000000 > f:\port2.txt
echo 00000000 > f:\port3.txt

:loop
echo 00000001 > f:\port0.txt
echo 00000010 > f:\port0.txt
echo 00000100 > f:\port0.txt
echo 00001000 > f:\port0.txt
echo 00010000 > f:\port0.txt
echo 00100000 > f:\port0.txt
echo 01000000 > f:\port0.txt
echo 10000000 > f:\port0.txt
echo 00000000 > f:\port0.txt

echo 10000000 > f:\port2.txt
echo 01000000 > f:\port2.txt
echo 00100000 > f:\port2.txt
echo 00010000 > f:\port2.txt
echo 00001000 > f:\port2.txt
echo 00000100 > f:\port2.txt
echo 00000010 > f:\port2.txt
echo 00000001 > f:\port2.txt
echo 00000000 > f:\port2.txt

echo 10000000 > f:\port3.txt
echo 01000000 > f:\port3.txt
echo 00100000 > f:\port3.txt
echo 00010000 > f:\port3.txt
echo 00001000 > f:\port3.txt
echo 00000100 > f:\port3.txt
echo 00000010 > f:\port3.txt
echo 00000001 > f:\port3.txt
echo 00000000 > f:\port3.txt

echo 10000000 > f:\port1.txt
echo 01000000 > f:\port1.txt
echo 00100000 > f:\port1.txt
echo 00010000 > f:\port1.txt
echo 00001000 > f:\port1.txt
echo 00000100 > f:\port1.txt
echo 00000010 > f:\port1.txt
echo 00000001 > f:\port1.txt
echo 00000000 > f:\port1.txt

goto loop

Re: 1051's 霹靂燈 BAT檔

文章發表於 : 週一 7月 28, 2008 9:22 pm
閒閒魚
颱風天來貼一下下 50行的程式
這個批次檔是用在 F 槽

建議1:有沒有一個偵測1051在哪一槽的程式
建議2:COPYBACK 可不可以不要閃一下. 每次在DOS下閃來閃去很煩的說