„main.py“ ändern
This commit is contained in:
parent
4050a7b3a5
commit
648f3e883e
2
main.py
2
main.py
|
@ -11,7 +11,7 @@ def Coincounter(pin):
|
||||||
global newCoin, pulses, timeAfter
|
global newCoin, pulses, timeAfter
|
||||||
timeAfter = time.ticks_us()
|
timeAfter = time.ticks_us()
|
||||||
newCoin = True
|
newCoin = True
|
||||||
pulses = pulses + 1
|
pulses += 1
|
||||||
coinPin.irq(handler = Coincounter, trigger = Pin.IRQ_RISING)
|
coinPin.irq(handler = Coincounter, trigger = Pin.IRQ_RISING)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue