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

Reduce XY Table to only using fixed, single template map, instead of fresh calculating one the size of the matrix every begin() #67

Open
connornishijima opened this issue Aug 7, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@connornishijima
Copy link
Owner

Keep a template map for a single display's worth of XY lookup table in PROGMEM, and do extra calculations during xy() calls to loop over it and discover the 1D indices of 2D coordinates in displays of any size, versus the current method of keeping an entire int16_t[matrix_width * matrix_height] map in RAM.

@connornishijima connornishijima added the enhancement New feature or request label Aug 7, 2022
@connornishijima connornishijima self-assigned this Aug 7, 2022
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