Interrupts

This commit is contained in:
yaba-source
2025-06-18 17:52:13 +00:00
parent d92b3435db
commit 08acf60c4e
2 changed files with 76 additions and 22 deletions

15
micropython/testmain.py Normal file
View File

@@ -0,0 +1,15 @@
from machine import Pin
import json
import time
while True:
an = Pin(5, Pin.IN)
bereit = Pin(4, Pin.IN)
fehler = Pin(14, Pin.IN)
if an.value() == 1:
print("An")
if bereit.value() == 1:
print("Bereit")
if fehler.value() == 1:
print("Fehler")