Webduino 模擬器:打地鼠 (Webduino Simulator: Hit Mouse Game)

若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。

If you like this post, please click the ads on the blog or buy me a coffee. Thank you very much.

本篇要用Webduino模擬器的按鈕開關與LED燈來模擬打地鼠的遊戲。
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。

Wiring:
  1. LED anode --> UNO D11, D10, D9 ( respectively )
  2. LED cathode --> UNO GND
  3. Button S(signal) --> UNO D4, D8, D12 ( respectively )
  4. Button V(voltage) --> UNO 5V
  5. Button G(ground) --> UNO GND


程式積木請參考範例網址(Block Code URL):https://simulator.webduino.io/#-L-ktU9IRTQ2P46seIMA

影片(Demo Video):

沒有留言: