Hey there!
I'm wrote a complete library for Gamebuino, a handheld console based on Arduino I released on Indiegogo 3 days ago (check out the trailer on Gamebuino: an Arduino handheld console | Indiegogo). The library includes a lot of things, like a fancy GUI or 4 channel sound generation. That's really handy, but the problem is that it takes a lot of ROM & RAM. I would like to be able to add some preprocessor directives at the beginning of my sketches to disable some parts of the library depending on what I need , like #define NOSOUND 1 to disable the whole sound generation.
Is that possible ? If I use #ifdef NOSOUND in the library and #define NOSOUND 1 in my sketch, it won't work because the sketch comes after the library ![]()
I can't put the different parts of the library in different libraries, because they all depend from each other, and that would be really messy.
I didn't find any neat solution, I hope you will! ![]()
