Dear all,
I try to get the time between two interrupts from a push on a button with the code :
import time, pyb
testClock = time.clock()
def test(line) :
print( testClock.avg() )
testClock.tick()
return
testClock.tick()
pyb.ExtInt('P7', pyb.ExtInt.IRQ_FALLING, pyb.Pin.PULL_UP, test)
while(True):
time.sleep(10)
In openmvIDE, i have the error :
Uncaught exception in ExtInt interrupt handler line 12
MemoryError:
Any help could be pleased, Thanks,