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

Improve pixel API #173

Open
henrygab opened this issue Dec 23, 2024 · 0 comments
Open

Improve pixel API #173

henrygab opened this issue Dec 23, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@henrygab
Copy link
Collaborator

Current RGB API does not play well with others (animation from config file overwrites any other use of the pixels).

The improved API should aim to do the following:

  1. Safely avoid touching hardware when pixel subsystem is not initialized or otherwise disabled
  2. Allow "reserving" bitmask of individual pixels (w/ uint32_t owner tag or similar for debugging)
  3. Allow "releasing" bitmask of reserved pixels (w/ uint32_t owner tag or similar for debugging)
  4. Automatically pause any configured animation when at least one pixel is reserved
  5. Automatically resume configured animation when last reserved pixel is released

Note: The above functionality is a pre-requisite to improving debug output. In particular, want to have assert() and hard_assert() handlers cause specific unique animation to make it clear there is a code issue (vs. hardware lockup), even with no debugger attached.

@henrygab henrygab added the enhancement New feature or request label Dec 23, 2024
@henrygab henrygab self-assigned this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant