This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
You've already forked circuitpython
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
a4f4239e95
circuitpython
/
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 11:43:27 -04:00
from
pyb
import
Switch
tests, pyb: Add 'import pyb' when needed.
2014-05-04 07:40:51 -04: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 11:43:27 -04:00
print
(
sw
(
)
)
sw
.
callback
(
print
)
sw
.
callback
(
None
)