tinygo-keyboard
tinygo-keyboard copied to clipboard
[WIP] initial bluetooth support between split keyboards
In general that adds basic support for one half to connect to other one via bluetooth using same logic uart keyboard have Not sure if it is ready to be merged, but it can be used as reference, in general it works, but:
- there is small delay sometimes (not sure if bluetooth issue or problem with code)
- you need to turn right half after first one in order for it to connect (not sure if should be done on keyboard side or lib side)
Opening PR for reference and some feedback, if it is okay (if not you can close it till it would be ready)
it can be tested with wireless corne on repo https://github.com/funkycode/tinygo-corne (works with pinout of typeractive.xyz version, as well with niceview)
Since the current Loop() is a little too slow, it would be better to run the loop with a 1ms wait as shown below. It will be a little more responsive.
https://github.com/sago35/tinygo-keyboard/blob/cde67601b4529fbe811b2999e2acba0735f0ba10/targets/sgkey-ble/right/main.go#L55-L68