microsoft / microsoft/pxt-microbit
Simulator - Acceleration values don't override the V2 indicator
Nobody has claimed this yet.
- 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:
- Go to https://makecode.microbit.org/beta
- Create a new project
- Notice simulator V2 indicator
- Add show number acceleration (x) to forever
- See error - V2 indicator
- Visit Home and reload the same project
- See acceleration
- Move a block
- See error - V2 indicator
Expected behavior
Acceleration values show in preference to the V2 indicator.
Screenshots
In a new project
After reloading the project
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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