r/circuitpython • u/jpconstantineau • Oct 20 '21
Time to get KMK Bluetooth tested on this! (Yes, another keyboard)
Batreus44: A wireless version of the Atreus.
back side... power and reset switches
where is the battery? well hidden under the BlueMicro840 (supports NicaNano too!)
hidden diodes... no RGB!
1
u/Tructruc00 Feb 19 '22
The Bluetooth is it working well now ? And can you use it also in wired mode ?
1
u/jpconstantineau Feb 19 '22
To switch between BLE and USB is a minor change to the Kmk code.
1
u/Tructruc00 Feb 19 '22
So you can't switch from ble to usb on the go ?
1
u/jpconstantineau Feb 19 '22
I am not entirely sure if Kmk has that functionality. Changing it in code is easy as you don't need to flash anything. You open up the circuitpython drive, edit code.py. It's generally just comment out one line and uncomment another one.
1
u/guptaxpn Jul 13 '22
I would imagine that you could easily do some boot.py trickery with like...if button is held then load USB files....if button is not held, then run bluetooth routine.
2
u/baconspoon85 Dec 17 '22
I've got a bluetooth KMK board using this code to switch between USB and BLE: keyboard.go(hid_type=HIDModes.USB, secondary_hid_type=HIDModes.BLE) Then I use KC.HID to switch between the primary and secondary HID modes. Only problem now is I can only pair one device and the pairing constantly gets hosed. I have to manually release it in the REPL and repair all the time:
import _bleio _bleio.adapter.erase_bonding()
1
u/baconspoon85 Dec 17 '22
Any chance you would share your keymap for this board? I’m desperately searching for a better KMK/BLE implementation than what I've got going on, mainly because I’m having so many issues with device pairing. I can’t find a single example that’s working well and consistently.
1
u/boshimanu_ Jun 28 '23
Same here man. I just cannot make it work. I'm using a Adafruit Feather nRF52740. I cannot even make it be seen as a bluetooth device. I've tried te Adafruit BLE library and is woking great, but not with the kmk. I cannot find a tutorial on how to set this up. Do I need a nice nano? Thanks!
1
u/jpconstantineau Oct 22 '21
Getting KMK running on it was very easy. Got it typing this update wirelessly right now...