Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support simulation of display rotation #4935

Open
jaustin opened this issue Feb 9, 2023 · 2 comments
Open

Support simulation of display rotation #4935

jaustin opened this issue Feb 9, 2023 · 2 comments

Comments

@jaustin
Copy link
Collaborator

jaustin commented Feb 9, 2023

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:
lancaster-university/codal-microbit-v2#227

CC @bsiever @finneyj

@bsiever
Copy link

bsiever commented Feb 9, 2023

The extension is trivial. If the simulator supports rotation too, the blocks might as well be included in the default toolboxes (and the extension deprecated/removed). The extension still depends on CODAL updates which are contingent on the next annual release. If possible, maybe target simulator support and new rotation blocks for the release?

@jaustin
Copy link
Collaborator Author

jaustin commented Feb 9, 2023

Thanks @bsiever that was the reason I created the issue, to consider putting this into the 2023 release :)

I agree too about pulling the extension into the core code, but I think that should be a separate issue - it'd avoid the long compile times for the small C++ addition. @pelikhan @abchatra any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants