microsoft / microsoft/pxt-microbit

Wrong pin connected in simulator when using setpitchpin

Open
#3,326 0 comments 0 reactions 0 assignees View on GitHub

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

grafik

Expected behavior
the correct pin should be connected

Win10, makecode beta

Thanks!

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.