How can we turn off/remove unused parts in Arduino SD library? Can we have some kind of #define to do that?
I only need read/write/append/seek function.
I cannot use Arduino's standard SD library fully because of the lack of flash. I'm using PetitFS but it doesn't support appending to a file!
Thanks for any help!
P/S: In case you wonder what I am doing and why my sketch so big, I'm porting fake86 to Arduino UNO (here and here).
raspiduinogit:
How can we turn off/remove unused parts in Arduino SD library? Can we have some kind of #define to do that?
The compiler should not include code you dont use.
To turn the question around, how do you know the compiler is including unused code ?
Many, many times there are requests in these forums to significantly reduce the amount of flash and memory space that the SD library uses, if you find a way, do let on.