Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
xs5871 committed Aug 4, 2023
1 parent b6a9e50 commit 9e49992
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions user_keymaps/dzervas/lab68.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import board
import busio
from digitalio import DigitalInOut, Direction, Pull
import digitalio
from adafruit_mcp230xx.mcp23017 import MCP23017

Expand All @@ -16,6 +15,7 @@
i2c = busio.I2C(scl=board.SCL, sda=board.SDA, frequency=100000)
mcp = MCP23017(i2c, address=0x20)


class MyKeyboard(KMKKeyboard):
def __init__(self):
self.debug_enabled = True
Expand All @@ -28,12 +28,13 @@ def __init__(self):
rows=self.row_pins,
diode_orientation=self.diode_orientation,
pull=digitalio.Pull.DOWN,
#rollover_cols_every_rows=None, # optional
# rollover_cols_every_rows=None, # optional
)


keyboard = MyKeyboard() # uses MyKeyboard() instead of KMKKeyboard()
# to make use of the digitalio scanner which works with the io expander
# uses MyKeyboard() instead of KMKKeyboard() to make use of the digitalio
# scanner which works with the io expander
keyboard = MyKeyboard()
layer_ext = Layers()
keyboard.modules = [layer_ext]

Expand Down Expand Up @@ -88,5 +89,5 @@ def __init__(self):
]

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

0 comments on commit 9e49992

Please sign in to comment.