For a few weeks now i've been trying to fix a problem printing variables to oled with lcdgfx and ssd1306 libraries, idk why this isn't already implemented in them, so the developer said to convert float to string and print it on the display
display.setTextCursor(85, 0);
snprintf(StrT, sizeof(StrT), "%F", currentTemperature);
display.write(StrT);
This just outputs a question mark
Then after some more research i found out that arduino doesn't support this function but this
display.setTextCursor(85, 0);
String StrT = String(currentTemperature, 2);
display.write(StrT);
But with this i just get an error
error: no matching function
for call to 'DisplaySSD1306_128x64_I2C::write(String&)'
So does anyone know what's the problem, any possible fixes and if not at least recommend me a library for ssd1306 that can print variables and uses max 8kB flash and 500B ram?
Best regards