Open ah- opened 6 years ago
My pairing experience:
Without step 3, the keys 1~4 and 0 ends the pairing session, since they invoke other bluetooth actions. It would be best if the MCU can get some indication from BLE chip to switch to BASE and highlight the number keys like stock does.
I think it does get that indication, via BleOp::Pair
here: https://github.com/ah-/anne-key/blob/master/src/bluetooth.rs#L177
Not quite sure yet how to best build the pin input mode. Sending the LED update to highlight the num keys should be easy though.
Connection state feedback works now (apart from having to manually press left ctrl sometimes to make it update). Started building the pin entry mode, but it doesn't quite work correctly yet.
We have a mostly working implementation of bluetooth pairing etc. Talking to the BT controller works, and I have managed to pair with my laptop.
It'd be nice to implement the full workflow, and control the LEDs upon entering BT setup mode, display the BTHostListQuery result, and use the same keymap as the original FW.