梯間照明燈BBC micro:bit coding
在這個模型的coding裡,你需要用到以下的micro:bit codes:
- Basic (basic micro:bit functions and actions): On Start, Show LED, Show icon, Pause
- Input (events and inputs from sensors): Button is Pressed
- Loops: While Loop (repeat code while a Boolean condition is true)
- Logic: If (conditionally run code depending on whether a Boolean condition is true or false)
- Variables: Assign variables
- Function: Define a function, Calling a function
- Pins (Control currents in Pins for analog/digital signals, servos, i2c,...) : Digital Write Pin, Digital Read Pin
基本版 :
Coding 概覽 :
SET Light_On Variable的部分 :
如未能下載建議使用firefox browser來開啟網頁
function ver :
如未能下載建議使用firefox browser來開啟網頁