chore: whatever it just took to get my PM2040 to boot

This commit is contained in:
Josh Klar 2021-07-07 13:00:27 -07:00 committed by Kyle Brown
parent 270be1fa28
commit ab6aa1838c
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
from kb import KMKKeyboard, rgb_pixel_pin
from kb import KMKKeyboard
from kmk.extensions.rgb import RGB
from kmk.keys import KC
from kmk.modules.layers import Layers
@ -7,7 +7,7 @@ from kmk.modules.split import Split, SplitSide, SplitType
keyboard = KMKKeyboard()
# 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
split_side = SplitSide.LEFT

View File

@ -64,7 +64,7 @@ class Split(Module):
self.UARTService = UARTService
except ImportError:
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_last_scan = ticks_ms() - 5000
self._connection_count = 0