#ifndef LED_PIN#define LED_PIN 13#endif
Now, having just done this; I wonder if I just re-invented the wheel [I am known to do that].
Perhaps there are existing enhancements or patches available that already accomplish the same, in a more elegant manner?
Also, I am "happily unaware" of any unexpected consequences this change could have, although it does seem that every time a sketch compiles, the libraries are also re-compiled, so it seems safe. Or is there perhaps something that I really should know?
How would a library source file include "config.h" from the Sketch directory?
For an application that is teetering on the Flash limit or is especially time critical, being able to trim and optimize library code can make a huge impact.
#define BUFFER_LENGTH 66#define TWI_BUFFER_LENGTH 66
#ifndef BUFFER_LENGTH#define BUFFER_LENGTH 32#endif