microsoft / pxt-brainpad

Microsoft MakeCode editor for the GHI Brainpad
https://makecode.brainpad.com/
Other
3 stars 11 forks source link

'button is pressed' parameter, not working in Sim. #76

Closed greg-norris closed 6 years ago

greg-norris commented 6 years ago

When running this code, it doesn't work in the Simulator, but does work when deployed to the BrainPad.


forever(function () {
    if (input.buttonU.isPressed()) {
        lightbulb.setColor(0xff0000)
    } else {
        lightbulb.setColor(0x00ff00)
    }
})
``