index
:
suspect-devices/circuitpython
1.x
2.x
3.x
4.0.x
4.1.x
4.x
5.0.x
5.1.x
5.3.x
6.0.x
6.1.x
6.2.x
audiocore-rawsample-sinewave
azure
azure-pipelines
cross
dm-mixer
dynamic-native-modules
encoding
esp-extra-scripts
fix_typo_spanish
iabdalkader-cc3k-update
jepler-try-ubuntu-20.04
main
master
parse-bytecode
reentrant-gc
stable
travis-clang
travis-esp8266
travis-stackless
travis-testing
type_hints
CircuitPython - a Python implementation for teaching coding with microcontrollers
feurig
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
tests
/
pyb
/
switch.py
blob: 7c44adb136cee7c59874e434ae098b9b12807860 (
plain
)
1
2
3
4
5
6
from
pyb
import
Switch
sw
=
Switch
()
print
(
sw
())
sw
.
callback
(
print
)
sw
.
callback
(
None
)