Skip to content

Commit

Permalink
test/psoc6/timer.py: Added basic timer test.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <[email protected]>
  • Loading branch information
jaenrig-ifx authored and IFX-Anusha committed Jul 26, 2023
1 parent dd477c4 commit d2e5abd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/psoc6/timer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import time
from machine import Timer

t = Timer(0)
t.init(period=2000, mode=Timer.ONE_SHOT, callback=lambda t: print("hello"))
time.sleep_ms(3000)
1 change: 1 addition & 0 deletions tests/psoc6/timer.py.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello

0 comments on commit d2e5abd

Please sign in to comment.