FPPA0Loop:
wait0 Btn0;
set1 Led0;
wait1 Btn0;
set0 Led0;
goto FPPA0Loop;
FPPA1Loop:
wait1 Led0;
delay Delay;
set1 Led1;
wait0 Led0;
delay Delay;
set0 Led1;
goto FPPA1Loop;
FPPA2Loop:
wait1 Led1;
delay Delay;
set1 Led2;
wait0 Led1;
delay Delay;
set0 Led2;
goto FPPA2Loop;
FPPA3Loop:
wait1 Led2;
delay Delay;
set1 Led3;
wait0 Led2;
delay Delay;
set0 Led3;
goto FPPA3Loop;
FPPA4Loop:
wait1 Led3;
delay Delay;
set1 Led4;
wait0 Led3;
delay Delay;
set0 Led4;
goto FPPA4Loop;
FPPA5Loop:
wait1 Led4;
delay Delay;
set1 Led5;
wait0 Led4;
delay Delay;
set0 Led5;
goto FPPA5Loop;
FPPA6Loop:
wait1 Led5;
delay Delay;
set1 Led6;
wait0 Led5;
delay Delay;
set0 Led6;
goto FPPA6Loop;
FPPA7Loop:
wait1 Led6;
delay Delay;
set1 Led7;
wait0 Led6;
delay Delay;
set0 Led7;
goto FPPA7Loop;
2007年7月12日 星期四
FPPA 版的跑馬燈!!! PART II
再來一個~這是它的變化型~(按住就會變成一長串喔~)
訂閱:
張貼留言 (Atom)
更高效處理 micro second 的方式
更高效處理 micro second 的方式… 以 STM32 為例… __IO unsigned long sys_tick = 0; void SysTick_Handler(void) { HAL_IncTick(); sys_tick += (SysTi...
-
rails blog -d mysql 建立一個名為 blog 的網站app,使用 mysql cd blog 進去 gen 好的網站 config/database.yml 編輯資料庫設定 rake db:create 自動建立資料庫 ruby script/generate ...
-
https://github.com/ljean/modbus-tk/ install pip… sudo apt-get install python-pip install... download modbus_tk-x.x.x.tar.gz tar zxvf...
-
DMX protocol… # 1:break + 1:start + 512:channel python: import serial class DMX512: def __init__(self, port): self.seria...
沒有留言:
張貼留言