webduino彩虹燈
模擬器http://simulator.webduino.io/
Web:bit教育版 https://webbit.webduino.io/blockly/?demo=default
學習手冊https://tutorials.webduino.io/zh-tw/docs/basic/index.html
1.設計七彩燈
2.連接腳位(注意是VRBG,電源、紅、藍、綠色)
3.設定紅綠藍變數
紅 | 綠 | 藍 | |
紅 | 255 | 0 | 0 |
橙 | 255 | 64 | 0 |
黃 | 255 | 255 | 0 |
綠 | 0 | 255 | 0 |
藍 | 0 | 0 | 255 |
靛 | 0 | 64 | 255 |
紫 | 64 | 0 | 255 |
全站熱搜