With this, we are down to:
With WITH_SSTREAM defined:
Memory Usage on Teensy 4.1:
FLASH: code:9996, data:3008, headers:8496 free for files:8104964
RAM1: variables:3808, code:7536, padding:25232 free for local variables:487712
RAM2...
So I made a quick example with Teensyduino 1.59 and compiling for Teensy 4.1:
#define WITH_SSTREAM
#ifdef WITH_SSTREAM
#include <sstream>
#else
#include <string>
#endif
const int i = 911;
void setup() {
Serial.begin(115200);
}
void loop() {...