This commit is contained in:
Liz 2025-06-13 14:24:50 -04:00
parent 5b4ba29cc2
commit dbf2a4301e
2 changed files with 3 additions and 2 deletions

View file

@ -5,4 +5,4 @@
import usb_cdc import usb_cdc
# Enable USB CDC (serial) communication # Enable USB CDC (serial) communication
usb_cdc.enable(console=True, data=True) usb_cdc.enable(console=True, data=True)

View file

@ -71,7 +71,8 @@ class TypewriterSender:
keyboard.Key.cmd_r: 0x80, keyboard.Key.cmd_r: 0x80,
} }
def find_feather_port(self): @staticmethod
def find_feather_port():
"""Find the Feather's serial port""" """Find the Feather's serial port"""
ports = serial.tools.list_ports.comports() ports = serial.tools.list_ports.comports()