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

Neopixel errors are not clear #1796

Open
jaustin opened this issue Jan 18, 2019 · 2 comments
Open

Neopixel errors are not clear #1796

jaustin opened this issue Jan 18, 2019 · 2 comments

Comments

@jaustin
Copy link
Collaborator

jaustin commented Jan 18, 2019

Describe the bug
When a user hasn't first created a 'strip' object, the errors spawned by Neopixel blocks are unclear.

image

To Reproduce
Steps to reproduce the behavior:

  1. Create a new project
  2. Add the neopixel library
  3. Drag one of the blocks that manipulates a 'strip' object into the program
  4. See error

The error is "Program Error: r0 is null" which will not mean much to many people.

Expected behavior
The error the user gets should help them understand about the requirement for the object to be instatiated before it is used OR the blocks for manipulating the strip object are not available to the user until they've done the required instantiation (this seems harder/impossible to get right?)

@Lorrainbow
Copy link

The same bug I believe, if you set the brightness of a neopixel strip before you declare the strip you get a different error:
image

And when it downloads to the micro:bit it display a number error and creates an ASSERT file, attached.
ASSERT.TXT

@jaustin
Copy link
Collaborator Author

jaustin commented Jan 30, 2024

In MakeCode 2023, we still have
image

But the error on the block says:
image

I still think this is pretty confusing.

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