microsoft / microsoft/pxt-microbit

Simulator - Acceleration values don't override the V2 indicator

Open
#6,968 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P2 Simulator
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

Describe the bug

When a V2 is connected the simulator shows a V2 indicator.

If an accelerometer block is added, the simulator should start showing the acceleration value, but the V2 indicator stays until the project is reloaded.

When the project is reloaded, the V2 indicator doesn't show, and acceleration value appears as the block is executed, which seems OK, though I think it would be better if they appeared at the start.
https://makecode.microbit.org/_h6kL43U9HMcM

Any edit brings back the V2 indicator... most of the time!

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://makecode.microbit.org/beta
  2. Create a new project
  3. Notice simulator V2 indicator
  4. Add show number acceleration (x) to forever
  5. See error - V2 indicator
  6. Visit Home and reload the same project
  7. See acceleration
  8. Move a block
  9. See error - V2 indicator

Expected behavior

Acceleration values show in preference to the V2 indicator.

Screenshots

In a new project

Image

After reloading the project

Image

micro:bit version (please complete the following information):

micro:bit V2

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 11
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the beta editor and the linked reproduction project, then follow the listed steps while observing the simulator's V2 indicator and acceleration output. Trace the simulator display updates triggered by adding the acceleration block, reloading, and editing; done means acceleration values consistently replace the V2 indicator without requiring a reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.