microsoft / microsoft/pxt-microbit
Wrong pin connected in simulator when using setpitchpin
Open
Nobody has claimed this yet.
P2
pins
Simulator
- Dominant language
- TypeScript
- Stars
- 804
- Forks
- 721
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 2
Description
Describe the bug
When selecting another pin via setpitchpin pin P0 stays connected in the simulator instead of the selected pin

Expected behavior
the correct pin should be connected
Win10, makecode beta
Thanks!
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
Start by reproducing the issue in the MakeCode simulator using setpitchpin to select a pin other than P0. Trace the simulator entry point for setpitchpin and verify that the selected pin, rather than P0, is connected; done means the simulator reflects the chosen pin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100