microsoft / microsoft/pxt-microbit

Beta: Neopixels in simulator - graphics alignment is confusing

Open
#5,153 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

extension help wanted neopixel P2
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

Describe the bug
The alignment of the "live" squares with the circles of the strip graphic behind is confusing, making it seem like the first pixel is not lit.

Arising from https://support.microbit.org/helpdesk/tickets/63295 (private)

To Reproduce
Steps to reproduce the behavior:

  1. Load https://makecode.microbit.org/_D7bVAgdLYdEr
  2. See white circle above strip

Expected behavior
The graphics are aligned.

Screenshots
image

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

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

Load the linked MakeCode project to reproduce the misalignment, then trace the simulator's Neopixel strip rendering. Done means the live squares align with the strip's circles so the first pixel appears lit correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.