Files
micropython/tests/ports/stm32/switch.py
Damien George 7bbcee3cf0 tests: Move port-specific test directories into tests/ports/ directory.
To keep them all together, mirroring the top-level directory structure.

Signed-off-by: Damien George <damien@micropython.org>
2024-01-22 11:48:27 +11:00

7 lines
87 B
Python

from pyb import Switch
sw = Switch()
print(sw())
sw.callback(print)
sw.callback(None)