chore: whatever it just took to get my PM2040 to boot
This commit is contained in:
parent
270be1fa28
commit
ab6aa1838c
@ -1,4 +1,4 @@
|
|||||||
from kb import KMKKeyboard, rgb_pixel_pin
|
from kb import KMKKeyboard
|
||||||
from kmk.extensions.rgb import RGB
|
from kmk.extensions.rgb import RGB
|
||||||
from kmk.keys import KC
|
from kmk.keys import KC
|
||||||
from kmk.modules.layers import Layers
|
from kmk.modules.layers import Layers
|
||||||
@ -7,7 +7,7 @@ from kmk.modules.split import Split, SplitSide, SplitType
|
|||||||
keyboard = KMKKeyboard()
|
keyboard = KMKKeyboard()
|
||||||
|
|
||||||
# Adding extensions
|
# Adding extensions
|
||||||
rgb = RGB(pixel_pin=rgb_pixel_pin, num_pixels=27, val_limit=100, hue_default=190, sat_default=100, val_default=5)
|
rgb = RGB(pixel_pin=keyboard.rgb_pixel_pin, num_pixels=27, val_limit=100, hue_default=190, sat_default=100, val_default=5)
|
||||||
|
|
||||||
# TODO Comment one of these on each side
|
# TODO Comment one of these on each side
|
||||||
split_side = SplitSide.LEFT
|
split_side = SplitSide.LEFT
|
||||||
|
@ -64,7 +64,7 @@ class Split(Module):
|
|||||||
self.UARTService = UARTService
|
self.UARTService = UARTService
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print('BLE Import error')
|
print('BLE Import error')
|
||||||
pass # BLE isn't supported on this platform
|
return # BLE isn't supported on this platform
|
||||||
self._ble = BLERadio()
|
self._ble = BLERadio()
|
||||||
self._ble_last_scan = ticks_ms() - 5000
|
self._ble_last_scan = ticks_ms() - 5000
|
||||||
self._connection_count = 0
|
self._connection_count = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user