public void DisableLed() { for (int idx = 0; idx < mTypeList.Count; idx++) { Mibo.enableLed(mTypeList[idx], false); } Mibo.enableSystemLED(); //離開app時讓系統來管理燈 }
public void EnableLED() { Mibo.disableSystemLED();//app自由控制燈 Mibo.setLedColor(mTypeList[mTypeIdx], mColorList[mColorIdx]); Mibo.enableLed(mTypeList[mTypeIdx], true); }