第一部分:APP 對 micro:bit
命令:
SRV: PWM 控制, 16 bytes
SRV150015001500# -> P0, P1, P2的PWM訊號
SRV095010202000#
SRV095010202000#
LED : 29 Bytes;
LED0111100000111110000022222# -> 控制前方的LED
詢問數值:
ASK:ACC
第二部分:micro:bit 對 APP
ACC: 加速計
GES036003600360#
Compass: 羅盤 會跟Rotation一起,
COM014000000000#
Tempture: 溫度
TEM003200000000#
Button 按鈕:
BTN111100000000# -> 1111: BTN A ON, 0000: BTN B OFF
LGT025500000000# -> 4 digits to show 0 to 255 value; (燈光亮度)
ROT+180–0900360# -> 4 digits to show Pitch, 4 digits to show Roll, 4 digits to show Compass;