From 648f3e883e61524646701e55eef3d3749a83fc2c Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Tue, 28 Mar 2023 11:50:14 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Emain.py=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 995ae46..8f27bd0 100644 --- a/main.py +++ b/main.py @@ -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: