-
-
Couldn't load subscription status.
- Fork 7k
Description
I am here suggesting a possible way of allowing configuring the libraries in a reliable way.
Currently when a library requires configuration, it takes those information either as arguments in the initializer, or build it into the code as #defines. The first type is already customizable, but what about the latter, as used in, say, some variant of Ethernet library that can drive W5100, W5200 and W5500?
I am suggesting the use of an optional config.h file. Only #defines are allowed in this file, and those lines are turned into -D flags that is present when compiling the entire sketch. This will allow some libraries to be configured at compile time.