index
:
micropython
master
parse-bytecode
v1.22-release
v1.24-release
MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
Aslak Raanes
summary
refs
log
tree
commit
diff
stats
homepage
log msg
author
committer
range
path:
root
/
tests
/
ports
/
stm32
/
switch.py
blob: 7c44adb136cee7c59874e434ae098b9b12807860 (
plain
) (
blame
)
1
2
3
4
5
6
from pyb import Switch sw = Switch() print(sw()) sw.callback(print) sw.callback(None)