[Core] Add dirty chunk checking for all RGB and LED drivers #24872
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Replaces #23625
Should this require additional documentation and require an additional
#define
to enable this?The file size of increase is only about 100 bytes on AVR
STM32 was tested with OPT=2 bloating the size for build size with this approach. The "bool array" aka bool per chunk is used here instead of a bitfield now after these tests.
Above tested on Pachi RGB Rev2 (with OPT=2) and Dawn60 Rev1_QMK
Testing with different chunk sizes (Pachi RGB Rev2 no optimisation)
![image](https://private-user-images.githubusercontent.com/17491233/406799096-33fd87d8-3730-4b64-a291-7646968ce5e9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTE4NTEsIm5iZiI6MTczODkxMTU1MSwicGF0aCI6Ii8xNzQ5MTIzMy80MDY3OTkwOTYtMzNmZDg3ZDgtMzczMC00YjY0LWEyOTEtNzY0Njk2OGNlNWU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA2NTkxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAxZWI2ZWJkN2FlYmQxMzUzMGU5NDAzYzZiZTgwZDE4NWYwOTY2NzMyYmFhOGVmMGZmOGZmMGZkYmJiZWYzMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Vq1PVnMHNuTW4GY8p6asB3IDVxVd0QAw6uIv2qbUYXk)
Types of Changes
Issues Fixed or Closed by This PR
Checklist