circuitpython/tests/pyb/switch.py
2014-05-04 12:40:51 +01:00

7 lines
87 B
Python

from pyb import Switch
sw = Switch()
print(sw())
sw.callback(print)
sw.callback(None)