Allison is right, the SD library is bloated. Perhaps someone can put it on a diet like Jerry did for the Si5351 library. Another point to be made is that, in my experience, it's not the flash memory that constrains things, it's the SRAM. While there are things that can be done to reduce the strain on SRAM (e.g., the F() macro), knowing what's going on with SRAM at runtime is problematic. I've blown up sketches that show only a 72% utilization of SRAM. The reason is because SRAM holds the stack, a memory resource that ebbs and flows as the program executes. Obviously, I flowed a little too much during runtime.
While Allison is also right that we could use some additional EEPROM space for some things, you probably don't want to stick things there that might need frequent or fast updates.
I also understand the statement:
????????My pet peve is Arduino sketches run the gamut of styles and readability.
C is over 40 years old and its freestyle syntax is one of its benefits and part of the reason it's lasted this long. I think what you and I both really wish for is that everyone wrote their code with the same style I do. Not gonna happen... I would suggest, however, that anyone posting source code anywhere at least use Ctrl-T on the source while it's still in the IDE before posting. At least the formatting would be more consistent.
Jack, W8TEE
On Monday, May 14, 2018, 9:53:29 AM EDT, ajparent1/KB1GMX <kb1gmx@...> wrote:
Having done a SD interface with Arduino I can say the SD library is huge.? The reason is the typical SD is used with the FAT filesystem and it takes a bit of code to navigate that. If one treats the SD as just a lot of addressable blocks then the code space needs drop greatly but its not without some cost in program space and IO.? Either way its likely too costly in program space for a few bytes of data.
Again myself I can't see that as being a big issue as there is 1024 bytes and cal settings eat a small number of them.??The other issue is IO needed to do SD makes a SPI display? desirable.
Some seem to feel added features are too much stuff.? Myself if the code is structured well its easy enough to add or subtract things as desired.? My pet peve is Arduino sketches run the gamut of styles and readability.
Myself I prefer a system with less menus ( how do I live with a FT817) and more buttons dedicated to a set of operations.? I have to try it.?