# 用ArduinoIDE控制Microbit # 安裝 :::info /檔案/偏好設定 :::  :::info 將https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json複製上去 :::  :::info /工具/開發版/開發版管理員 :::  :::info 搜尋"Nordic Semiconductor nRF5 Boards",選擇版本,安裝。 :::  :::info 安裝完成! ::: # 測試 :::info 將 microbit 連接到電腦 將測試程式複製到 ArduinoIDE ::: ```cpp= const int COL1 = 3; // Column #1 control const int LED = 26; // 'row 1' led void setup() { Serial.begin(9600); Serial.println("microbit is ready!"); // because the LEDs are multiplexed, we must ground the opposite side of the LED pinMode(COL1, OUTPUT); digitalWrite(COL1, LOW); pinMode(LED, OUTPUT); } void loop(){ Serial.println("blink!"); digitalWrite(LED, HIGH); delay(500); digitalWrite(LED, LOW); delay(500); } ``` :::info /工具/開發版 :::  :::info /工具/序列埠 :::  :::info 上傳程式 :::  :::info 執行結果 ::: 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up