linter fix
This commit is contained in:
parent
1b730cacf3
commit
015e0cdfd7
@ -1,7 +1,7 @@
|
|||||||
from adafruit_ble import BLERadio
|
from adafruit_ble import BLERadio
|
||||||
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
|
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
|
||||||
from adafruit_ble.services.standard.hid import HIDService
|
from adafruit_ble.services.standard.hid import HIDService
|
||||||
from kmk.hid import HID_REPORT_SIZES, AbstractHID
|
from kmk.hid import AbstractHID
|
||||||
|
|
||||||
BLE_APPEARANCE_HID_KEYBOARD = 961
|
BLE_APPEARANCE_HID_KEYBOARD = 961
|
||||||
# Hardcoded in CPy
|
# Hardcoded in CPy
|
||||||
@ -29,8 +29,8 @@ class BLEHID(AbstractHID):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def devices(self):
|
def devices(self):
|
||||||
"""Search through the provided list of devices to find the ones with the
|
'''Search through the provided list of devices to find the ones with the
|
||||||
send_report attribute."""
|
send_report attribute.'''
|
||||||
if not self.ble.connected:
|
if not self.ble.connected:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ class BLEHID(AbstractHID):
|
|||||||
# selected 1 position in the resulted array.
|
# selected 1 position in the resulted array.
|
||||||
# If no LESC is in place, Chuck can sniff the keystrokes anyway
|
# If no LESC is in place, Chuck can sniff the keystrokes anyway
|
||||||
for device in self.hid.devices:
|
for device in self.hid.devices:
|
||||||
if hasattr(device, "send_report"):
|
if hasattr(device, 'send_report'):
|
||||||
result.append(device)
|
result.append(device)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
@ -21,7 +21,7 @@ FN = KC.MO(1)
|
|||||||
|
|
||||||
keyboard.debug_enabled = True
|
keyboard.debug_enabled = True
|
||||||
|
|
||||||
keyboard.col_pins = (mcp.get_pin(8), mcp.get_pin(9), mcp.get_pin(10), mcp.get_pin(11), mcp.get_pin(12), mcp.get_pin(13), mcp.get_pin(14), mcp.get_pin(15), mcp.get_pin(4), mcp.get_pin(5), mcp.get_pin(6), mcp.get_pin(7), mcp.get_pin(3), mcp.get_pin(2), mcp.get_pin(1), )
|
keyboard.col_pins = (mcp.get_pin(8), mcp.get_pin(9), mcp.get_pin(10), mcp.get_pin(11), mcp.get_pin(12), mcp.get_pin(13), mcp.get_pin(14), mcp.get_pin(15), mcp.get_pin(4), mcp.get_pin(5), mcp.get_pin(6), mcp.get_pin(7), mcp.get_pin(3), mcp.get_pin(2), mcp.get_pin(1))
|
||||||
keyboard.row_pins = (board.D7, board.D6, board.D5, board.D3, board.D2)
|
keyboard.row_pins = (board.D7, board.D6, board.D5, board.D3, board.D2)
|
||||||
keyboard.diode_orientation = DiodeOrientation.COLUMNS
|
keyboard.diode_orientation = DiodeOrientation.COLUMNS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user