Micro:Bit_BLE APP
1.啟動中加入藍芽串口服務(Bluetooth UART Service)
2.使用Bluetooth on data receive (new line)積木
3.使用自創變數讀取字串RX_Data=Bluetooth uart read until (new line)
4.使用字串判斷compare RX_Data to " 比對的數值" 是否為零,若是則執行您的小車方向控制。
5.APP發送的數值:前進F, 後退B, 左L, 右R, 左上FL, 右上FR, 左下BL, 右下BR, 停止P, 尋跡T, 加速A, 減速D。
6.為避免藍芽連結失敗,建議程式內勿再加入其他控制如A,B按鈕或搖動等。