fix(lint): lint all the things; be more flexible in boards dir

This commit is contained in:
Josh Klar
2021-06-20 13:59:59 -07:00
parent 7400f43cf8
commit f79e508566
6 changed files with 291 additions and 57 deletions

View File

@@ -43,7 +43,7 @@ class ModTap(Module):
return keyboard
def mt_released(self, key, keyboard, *args, **kwargs):
''' On keyup, check timer, and press key if needed.'''
'''On keyup, check timer, and press key if needed.'''
keyboard.keys_pressed.discard(key.meta.mods)
if self._mod_tap_timer and (
accurate_ticks_diff(

View File

@@ -2,11 +2,11 @@
import busio
from micropython import const
from kmk.hid import HIDModes
from storage import getmount
from kmk.kmktime import ticks_diff, ticks_ms
from kmk.matrix import intify_coordinate
from kmk.modules import Module
from storage import getmount
class SplitSide:
@@ -141,8 +141,10 @@ class Split(Module):
def after_matrix_scan(self, keyboard):
if keyboard.matrix_update:
if self.split_type == SplitType.UART and self._is_target:
pass # explicit pass just for dev sanity...
elif self.split_type == SplitType.UART and (self.data_pin2 or not self._is_target):
pass # explicit pass just for dev sanity...
elif self.split_type == SplitType.UART and (
self.data_pin2 or not self._is_target
):
self._send_uart(keyboard.matrix_update)
elif self.split_type == SplitType.BLE:
self._send_ble(keyboard.matrix_update)