Skip to content

Simulator pins change colour unexpectedly when tilting simulator #6144

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

Closed
microbit-grace opened this issue Apr 14, 2025 · 5 comments
Closed

Comments

@microbit-grace
Copy link
Contributor

Describe the bug
Tilting the micro:bit simulator causes pins to change colour unexpectedly. This does not happen in live MakeCode and the issue is not caused by #6113.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new MakeCode project.
  2. Add a "On shake" block.
  3. Hover over simulator to tilt it around and see the pins change colour.

Expected behavior
The colour of the micro:bit pins in the simulator should not change.

Screenshots
Screenshot and video taken when running MakeCode locally.
Image
https://github.com/user-attachments/assets/e87e6857-965e-45bb-a476-fa8b2363d37b

Desktop
Screenshots and video taken on Chrome Version 134.0.6998.166 (Official Build) (arm64), MacOS

Version

makecode.microbit.org version: 7.1.24

Microsoft MakeCode version: 11.4.7

microbit runtime version: v2.2.0-rc6

codal-microbit-v2 runtime version: v0.2.69

@abchatra
Copy link
Collaborator

@microbit-grace can you please share the repro program? We are unable to repro with just the "On Shake" block. Reopen the issue once you attach the repro.

@microbit-grace
Copy link
Contributor Author

To repro

  1. Build pxt by running gulp watch (master branch)
  2. Start the local web server by running pxt serve in pxt-microbit (master branch)
  3. Create a new MakeCode project
  4. Add a "On shake" block
  5. Hover over simulator to tilt it around and see the pins change colour

Project
https://makecode.microbit.org/97869-95189-34637-69572
(You'll need to open the project in locally served micro:bit MakeCode to repro issue)

Video
Here's a video of the reproduction (sped up to reduce size for attaching to this comment)
https://github.com/user-attachments/assets/97ca3c9d-4b44-464e-a720-5c685a008aa3

Unfortunately I do not have permission to reopen this issue, but hope this helps!

@abchatra
Copy link
Collaborator

@microbit-grace does it repro on /beta? Or just localhost?

@microbit-grace
Copy link
Contributor Author

@microbit-grace does it repro on /beta? Or just localhost?

It doesn't repro on beta, just localhost

@abchatra
Copy link
Collaborator

Hmm this is low priority if it is only localhost.

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