Skip to content

Creating a "configurable" firmware #464

Answered by Makuna
simon-budig asked this question in Q&A
Discussion options

You must be logged in to vote

This library is not meant to solve that solution. It will be very difficult to support with lots of code bloat.

You the sketch author have to wrap each feature/method combo with its own class that derives from a base "interface" (abstract virtual class) and provide a "factory" that instances each combo and returns that base "interface". If you have ever heard of COM (old Windows term, often mentioned in relation to OLE) then this is what you would be doing.

Further, abstracting the whole RgbwColor and RgbColor is not going to be fun for you unless you accept comprises.

Its all doable, but not the goal of this library. 99.99% of users never need that and it will cause a huge code bloat and…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@simon-budig
Comment options

@Makuna
Comment options

Answer selected by Makuna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants