„main.py“ ändern

This commit is contained in:
Manuel Kamper 2023-03-28 11:50:14 +00:00
parent 4050a7b3a5
commit 648f3e883e
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def Coincounter(pin):
global newCoin, pulses, timeAfter
timeAfter = time.ticks_us()
newCoin = True
pulses = pulses + 1
pulses += 1
coinPin.irq(handler = Coincounter, trigger = Pin.IRQ_RISING)
while True: