UNPKG

pxt-common-packages

Version:
9 lines 543 B
{ "Button.id": "Gets the component identifier for the button", "Button.isPressed": "Check if a button is pressed or not.", "Button.onEvent": "Do something when a button (`A`, `B` or both `A` + `B`) is clicked, double clicked, etc...", "Button.onEvent|param|body": "code to run when the event is raised", "Button.wasPressed": "See if the button was pressed again since the last time you checked.", "ButtonEvent": "User interaction on buttons", "DigitalInOutPin.pushButton": "Get the push button (connected to GND) for given pin" }