noah1510 / LedController

An Arduino library for MAX7219 and MAX7221 Led display drivers
GNU Lesser General Public License v3.0
14 stars 5 forks source link

Split the library into modules #26

Closed noah1510 closed 3 years ago

noah1510 commented 3 years ago

As part of version 2.2.0 the library should be split into several modules. If every module should be used LedController.hpp should be included but it should also be possible to only include some of the modules. For this to work the class declaration has to be split into the following parts:

This way compiled programs can be smaller for cases where there is limited program storage and some functions are not needed. So for example LedController_core.hpp can be included to have access to all of the core functions without using any of the additional features.

Feel free to propose more modules that could be implemented/split to add them to the list.

noah1510 commented 3 years ago

Now that all of the transformation functions are part of the ByteBlock class this split might actually not be needed any more. Please leave a comment if you are interested in this but this issue will be closed for now.