This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
mirror of
https://github.com/micropython/micropython.git
Watch
1
Star
0
Fork
You've already forked micropython
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
8f642677f7
micropython
/
tests
/
pyb
/
switch.py
7 lines
87 B
Python
Raw
Blame
History
from
pyb
import
Switch
sw
=
Switch
(
)
print
(
sw
(
)
)
sw
.
callback
(
print
)
sw
.
callback
(
None
)
Reference in New Issue
View Git Blame
Copy Permalink