Kapitel 15 GPIO

This commit is contained in:
2023-05-05 06:30:12 +02:00
parent 3434ab2d9f
commit 03beec6a85
10 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -13,8 +13,8 @@ if __name__ =='__main__':
# benutze Broadcom Pin Nummerierung # benutze Broadcom Pin Nummerierung
GPIO.setmode(GPIO.BCM) GPIO.setmode(GPIO.BCM)
# Pin 16 als Input mit Pull-Up-Widerstand schalten.
logging.debug(f'konfiguriere Pin ${__PIN__} als Input.') logging.debug(f'konfiguriere Pin ${__PIN__} als Input.')
# Pin 16 als Input mit Pull-Up-Widerstand schalten.
GPIO.setup(__PIN__, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(__PIN__, GPIO.IN, pull_up_down=GPIO.PUD_UP)
pressed = False pressed = False