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 <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx authored and IFX-Anusha committed Jul 31, 2023
1 parent c516565 commit eebccdb
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 eebccdb

Please sign in to comment.