若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。
If you like this post, please click the ads on the blog or buy me a coffee. Thank you very much.This tutorial use three buttons and three LEDs to create a Hit Mouse Game simulation.
模擬器的接線方式為三個LED燈,LED短腳都接 UNO GND,LED長腳分別接UNO D11、UNO D10 、UNO D9,三個按鈕開關,按鈕開關的S分別接上 D4、D8、D12,按鈕開關的GND接UNO GND,按鈕開關的V 接 UNO 5V。
- LED anode --> UNO D11, D10, D9 ( respectively )
- LED cathode --> UNO GND
- Button S(signal) --> UNO D4, D8, D12 ( respectively )
- Button V(voltage) --> UNO 5V
- Button G(ground) --> UNO GND
程式積木請參考範例網址(Block Code URL):https://simulator.webduino.io/#-L-ktU9IRTQ2P46seIMA
影片(Demo Video):
沒有留言:
張貼留言