Closed fijam closed 2 years ago
You are right - there isn't at the moment a way to use it other than directly calling those methods.
I started a wiki page to record some details about this. https://github.com/datacute/Tiny4kOLED/wiki/Refactoring-to-support-double-sized-rendering
I just released v2.2.0 where the printDoubleSize
and printDoubleSizeSmooth
methods are replaced with setFontX2
, setFontX2Smooth
, setUnicodeFontX2
, and setUnicodeFontX2Smooth
so that the full variety of normal print methods can work with double sized text.
I'm a total noob when it comes to c/c++ so bear with me please, but from what I understand
oled.printDoubleSize()
andoled.printDoubleSizeSmooth()
either takes a string from flash with the F macro or needs to be fed byte-by-byte. Would it be possible to make it behave like regularoled.print()
so I could easily print a variable? Or perhaps add an example demonstrating the right way to do it?