micropython: add micropython component
This commit is contained in:
6
components/language/micropython/tests/pyb/switch.py
Normal file
6
components/language/micropython/tests/pyb/switch.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from pyb import Switch
|
||||
|
||||
sw = Switch()
|
||||
print(sw())
|
||||
sw.callback(print)
|
||||
sw.callback(None)
|
Reference in New Issue
Block a user