7 years, 11 months ago.

How to change text size?

Could you please help me. If i use gOled.setTextSize(2) - no image on display.

If i use gOled.setTextSize(1) - all ok.

Question relating to:

A derived version of the BSD licensed Adafrut GFX library for the SSD1306 controller for an OLED 128x32 or 128x64 display using SPI or I2C. display, I2C, OLED, SPI, SSD1306

1 Answer

7 years, 10 months ago.

Hi Dimitry,

You need to add the WANT_ABSTRACTS define, then you will be able to use text sizes greater than 1.

I have published a fork of the library with that set.


Accepted Answer

Thanks Dan for answering this.

Dimitry, since you Accepted this Answer, I have made several changes, including documentation and I2C import.

You may want to update to the current revision and look in the Adafruit_GFX_config.h file for GFX_SIZEABLE_TEXT or GFX_WANT_ABSTRACTS


posted by Neal Horman 26 Oct 2014