#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
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16