Closed ToniTaste closed 10 months ago
Digital Read doesn't work in the simulation.
To Reproduce Please use this program: basic.forever(function () { if (pins.digitalReadPin(DigitalPin.P0) == 0) { basic.setLedColor(0xff0000) } else { basic.setLedColor(0x00ff00) } })
Expected behavior When you set pin P0 to 1 in the simulation there won't be a change on the light color.
Screenshots
Desktop (please complete the following information):
Thank you for finding that issue.
Will be fixed in https://github.com/microsoft/pxt-calliope/pull/261
Digital Read doesn't work in the simulation.
To Reproduce Please use this program: basic.forever(function () { if (pins.digitalReadPin(DigitalPin.P0) == 0) { basic.setLedColor(0xff0000) } else { basic.setLedColor(0x00ff00) } })
Expected behavior When you set pin P0 to 1 in the simulation there won't be a change on the light color.
Screenshots
Desktop (please complete the following information):