Skip to content

Commit

Permalink
Add __init__() to KMKKeyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
regicidalplutophage authored Nov 10, 2024
1 parent 79cff81 commit 76e66ca
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion kmk/kmk_keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,20 @@ class Sandbox:
active_layers = None


class KMKKeyboard:
class KMKKeyboard: def __init__(
self,
keymap=[],
coord_mapping=None,
matrix=None,
modules=[],
extensions=[],
):
self.keymap = keymap
self.coord_mapping = coord_mapping
self.matrix = matrix
self.modules = modules
self.extensions = extensions

#####
# User-configurable
keymap = []
Expand Down

0 comments on commit 76e66ca

Please sign in to comment.