Also laut den comments die dort von "Dave Bailey" hinterlassen wurden musst du die ersten zwei lines als comment setzen oder löschen und die anderen dafür aus dem comment heraus setzen. Das sieht dann wiefolgt aus:

# License : GPLv2.0
# copyright (c) 2021  Dave Bailey
# Author: Dave Bailey (dbisu, @daveisu)


import usb_hid
from adafruit_hid.keyboard import Keyboard

# comment out these lines for non_US keyboards
# from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS as KeyboardLayout
#from adafruit_hid.keycode import Keycode

# uncomment these lines for non_US keyboards
# replace LANG with appropriate language
from keyboard_layout_win_de import KeyboardLayout
from keycode_win_de import Keycode

Übrigens solltest du dir der GPLv2.0 license bewusst sein:

  1. State any significant changes made to the original software (this requirement also applies to some permissive licenses)
  2. Release any copies or modifications of the code under the same license (reciprocity)
  3. Make available the original source code when you distribute any binaries based on the licensed work
...zur Antwort
Weitere Inhalte können nur Nutzer sehen, die bei uns eingeloggt sind.