kmk_firmware icon indicating copy to clipboard operation
kmk_firmware copied to clipboard

About Bluetooth

Open Vertex-kb opened this issue 1 year ago • 2 comments

How to switch between Bluetooth and wired models? Is it possible to use PEG in bluetooth mode.

Vertex-kb avatar Mar 16 '23 15:03 Vertex-kb

How to switch between Bluetooth and wired models

When setting the keyboard.go() function you can put secondary hid type like so:

if __name__ == '__main__':
    keyboard.go(hid_type=HIDModes.USB, secondary_hid_type=HIDModes.BLE, ble_name='KMK')

This has it default to usb, but it can switch to bluetooth. The code for toggling is KC.HID

I don't know what PEG is, so somebody else will have to comment on your second question.

lukeallister avatar Mar 20 '23 16:03 lukeallister

@Vertex-kb While peg supports kmk you will have to contact the maintainers of peg for your second question: https://github.com/boardsource/pegBoards/issues

grasegger avatar Aug 06 '23 06:08 grasegger