Open microbit-carlos opened 11 months ago
With this provided codal.json file, the issue is resolved with MICROBIT_BLE_PAIRING_MODE
=1, but breaks with MICROBIT_BLE_PAIRING_MODE
=0.
{
"target": {
"name": "codal-microbit-v2",
"url": "https://github.com/lancaster-university/codal-microbit-v2",
"branch": "master",
"type": "git"
},
"config":{
"DEVICE_BLE": 1,
"MICROBIT_BLE_ENABLED" : 0,
"MICROBIT_BLE_PAIRING_MODE": 0
}
}
With MICROBIT_BLE_PAIRING_MODE
=0, adding uBit.sleep(100)
before the uBit.buttonA.isPressed()
(which happens in uBit.init()
when pairing mode is enabled) seems to resolve the issue. 🤔
Simple program, on startup if Button A is pressed it displays the letter
A
, otherwise?
:MICROBIT.hex.zip
A
✅?
❌