from machine import Pin, Timer #importing pin, and timer class
def interruption_handler(pin):
print("Hi")
soft_timer = Timer(mode=Timer.PERIODIC, period=1000, callback=interruption_handler)
while(True):
pass
from machine import Pin, Timer #importing pin, and timer class
def interruption_handler(pin):
print("Hi")
soft_timer = Timer(mode=Timer.PERIODIC, period=1000, callback=interruption_handler)
while(True):
pass