close

 This video show the blinking of RGB LED controlled by Mega2560.

本影片展示用Mega2560控制RGB LED閃爍的狀況。

Next video will express how to implement it by editing the Arduino code in the VS Code.

下一個影片將說明如何使用VS Code來編寫Arduino code來實現這樣的控制。

 

 
This video shows how to write the Arduino code of RGB LED blinking by using the VS code.
本部影片展示如何使用VS code去編輯控制RGB LED閃爍的Arduino程式碼。
Hardware: Mega2560 硬體: Mega2560
Steps:
1. Use command "Arduino: Initialize" to create .ino file.
2. Modify "c_cpp_properties.json" to add the content of include path and setup other parameters.
3. Modify "arduino.json" to add build file for fast compilaton.
4. Edit code in VS code.
5. Upload code to Mega2560 board.
6. View Blink.ino in Arduino IDE.
 
步驟:
1. 使用"Arduino: Initialize" 去建立 .ino檔。
2. 修正 "c_cpp_properties.json" 去新增 include path的內容和設置其他參數。
3. 修正"arduino.json" 去新增 build資料夾讓編譯速度加快。
4. 在 VS code中編輯程式碼。
5. 上傳程式碼到Mega2560板中。
6. 在Arduino IDE中察看 Blink.ino檔案。
 

arrow
arrow
    文章標籤
    arduino vs code
    全站熱搜

    fishark 發表在 痞客邦 留言(0) 人氣()