Mouse

A program that uses a pin to generate left mouse click. Connect your board to your computer and test it out!

input.buttonD1.onEvent(ButtonEvent.Down, function () {
    mouse.setButton(MouseButton.Left, true)
})
input.buttonD1.onEvent(ButtonEvent.Up, function () {
    mouse.setButton(MouseButton.Left, false)
})
mouse
feature=uf2
feature=buttond1