This website requires JavaScript.
Explore
Help
Sign In
jebbatime
/
micropython
Watch
1
Star
0
Fork
You've already forked micropython
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
94873a4826
micropython
/
tests
/
pyb
/
switch.py
7 lines
87 B
Python
Raw
Normal View
History
Unescape
Escape
tests: Add a suite of tests specifically for the pyboard. In tests/pyb is now a suite of tests that tests the pyb module on the pyboard. They include expected output files because we can't run CPython on the pyboard to compare against. run-tests script has now been updated to allow pyboard tests to be run. Just pass the option --pyboard. This runs all basic, float and pyb tests. Note that float/math-fun.py currently fails because not all math functions are implemented in stmhal/.
2014-05-03 09:43:27 -06:00
from
pyb
import
Switch
tests, pyb: Add 'import pyb' when needed.
2014-05-04 05:40:51 -06:00
sw
=
Switch
(
)
tests: Add a suite of tests specifically for the pyboard. In tests/pyb is now a suite of tests that tests the pyb module on the pyboard. They include expected output files because we can't run CPython on the pyboard to compare against. run-tests script has now been updated to allow pyboard tests to be run. Just pass the option --pyboard. This runs all basic, float and pyb tests. Note that float/math-fun.py currently fails because not all math functions are implemented in stmhal/.
2014-05-03 09:43:27 -06:00
print
(
sw
(
)
)
sw
.
callback
(
print
)
sw
.
callback
(
None
)
Reference in a new issue
Copy permalink