If you like this post, please click the ads on the blog. Thank you very much.
Arduino Uno 板子上有一顆 LED 旁邊標有 L 字母,這個 LED 燈有連接到數位腳位13號上面,
There is a built-in LED (which has 'L' letter beside it) on UNO board. The LED can be controlled by arduino digital pin 13.
本文要來控制這顆 LED 燈,程式積木如下:
The code block for controlling the LED is:
黃色框框為註解,可以不用輸入。(The yellow box is a comment.)
完成後積木後,按下編輯
==>
Arduino模式
在畫面最右方,按下上傳到Arduino按鈕。
Demo影片:
參考資料:
[1] mBlock & Arduino(1)哈囉!LED!
沒有留言:
張貼留言