[…] Natürlich geht das, ziemlich einfach sogar. Schau dir mal gpiozero an: https://gpiozero.readthedocs.io/en/stable/