microsoft / microsoft/pxt-microbit
Beta: Neopixels in simulator show wrong colours when not GRB
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 804
- Forks
- 721
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 2
Description
Describe the bug
Neopixels in the simulator show wrong colours, unless the strip is specified to be GRB. It's the same in live and beta.
Related: https://github.com/microsoft/pxt-microbit/issues/3134 https://github.com/microsoft/pxt-microbit/issues/2940
Arising from https://support.microbit.org/helpdesk/tickets/63295 (private)
To Reproduce
Steps to reproduce the behavior:
- Load https://makecode.microbit.org/_D7bVAgdLYdEr
- See red in simulator
Expected behavior
The neopixels in the simulator show the correct colours
Screenshots
micro:bit version (please complete the following information):
not hardware related
Desktop (please complete the following information):
- OS: [e.g. iOS] Windows
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22] 113
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 linked MakeCode reproduction and compare simulator output when the Neopixel strip is configured with non-GRB colour ordering. Read the related issues #3134 and #2940 for context, then verify that simulator colours match the configured ordering in both live and beta versions.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100