Skip to content

Commit 07b4d19

Browse files
committed
Update demo1.py
1 parent 540d909 commit 07b4d19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎tmScheduler/demo1.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ def LED():
77
def pn(n):
88
print(n)
99

10-
task1 = Task(LED, None, 1000)
11-
task2 = Task(pn, 1, 1000)
12-
task3 = Task(pn, 2, 1500)
10+
task1 = Task(LED)
11+
task2 = Task(pn, 1, interval = 1000)
12+
task3 = Task(pn, 2, interval = 1500)
1313

1414
sc = Scheduler(machine.Timer(-1))
1515
sc.add(task1)

0 commit comments

Comments
 (0)