mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update timer test script to use non-reserved timer.
This commit is contained in:
parent
4e8a92efd1
commit
c4669c8fba
@ -12,7 +12,7 @@ blue_led = LED(3)
|
||||
def tick(timer):
|
||||
blue_led.toggle()
|
||||
|
||||
tim = Timer(4, freq=1) # create a timer object using timer 4 - trigger at 1Hz
|
||||
tim = Timer(2, freq=1) # create a timer object using timer 4 - trigger at 1Hz
|
||||
tim.callback(tick) # set the callback to our tick function
|
||||
|
||||
while (True):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user