microsoft / microsoft/pxt-microbit

Support simulation of display rotation

Open
#4,935 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

With the pxt-rotate extension, it's possible to create nice examples that show how mobile phone accelerometer is used to update the display rotation based on device orientation.

This has been requested by micro:bit teachers in Slack (which is why the extension was created) and it's hard to do with the icons and text otherwise.

However, right now, the CODAL feature for display rotation isn't supported on the simulator.

It would be great to have a design for this. Initially it could just be that the display rotates simply, but as it is most likely related to a kind of micro:bit motion that we can't do on the sim we may want to consider wider changes.

See also:
https://github.com/lancaster-university/codal-microbit-v2/pull/227

CC @bsiever @finneyj

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 reviewing the pxt-rotate extension and the linked CODAL display-rotation pull request, then locate the micro:bit simulator's display and motion handling. Done should include an agreed design and simulator behavior that demonstrates display rotation, while accounting for whether broader simulated motion changes are needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
embedded-iot, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.