[ble] Add support to change ble name from KMKKeyboard.go

This commit is contained in:
Dimitris Zervas
2020-09-15 01:16:14 +03:00
committed by Kyle Brown
parent 18eeb4eadc
commit e5700eeb5f
5 changed files with 12 additions and 10 deletions

View File

@@ -191,7 +191,7 @@ class KMKKeyboard:
else:
return busio.UART(tx=pin, rx=None, timeout=timeout)
def go(self, hid_type=HIDModes.USB):
def go(self, hid_type=HIDModes.USB, **kwargs):
assert self.keymap, 'must define a keymap with at least one row'
assert self.row_pins, 'no GPIO pins defined for matrix rows'
assert self.col_pins, 'no GPIO pins defined for matrix columns'
@@ -225,7 +225,7 @@ class KMKKeyboard:
elif hid_type == HIDModes.BLE:
self.hid_helper = BLEHID
self._hid_helper_inst = self.hid_helper()
self._hid_helper_inst = self.hid_helper(**kwargs)
# Split keyboard Init
if self.split_type is not None: