Interrupas de botones de micrypthon

>>> def f():
...   pyb.LED(1).toggle()
...
>>> sw.callback(f)
Precious Petrel