mBlock 單元一:控制 Arduino Uno 主板上的 LED (mBlock Unit 1: Controlling the Arduino built-in LED )

若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。
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!

沒有留言: