Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

digital read doesnt work in simulation #260

Closed
ToniTaste opened this issue Nov 21, 2023 · 1 comment
Closed

digital read doesnt work in simulation #260

ToniTaste opened this issue Nov 21, 2023 · 1 comment

Comments

@ToniTaste
Copy link

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
Screenshot 2023-11-21 124139

Desktop (please complete the following information):

  • OS: Win10H22
  • Browser Chrome 119
@Amerlander
Copy link
Collaborator

Thank you for finding that issue.

Will be fixed in #261

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants