ssd1306xled 1.0.0
SSD1306/SSD1315/SSH1106 OLED driver for ATtiny85
Loading...
Searching...
No Matches
Build flags (PlatformIO)

Macros

#define SSD1306_NO_FONT_6X8
 
#define SSD1306_NO_FONT_8X16
 
#define SSD1306_NO_DRAW_BMP
 
#define SSD1306_QUICK_BEGIN
 

Detailed Description

These flags control compilation when passed via PlatformIO build_flags (e.g. -D SSD1306_NO_FONT_6X8 in platformio.ini). They do NOT work as #define in Arduino IDE sketches because Arduino compiles library .cpp files separately.

In Arduino IDE, the linker already strips unused functions automatically.

Macro Definition Documentation

◆ SSD1306_NO_DRAW_BMP

#define SSD1306_NO_DRAW_BMP

Exclude ssd1306_draw_bmp() (the page-aligned bitmap draw). Use ssd1306_draw_bmp_px() instead. Costs 66 bytes when used.

◆ SSD1306_NO_FONT_6X8

#define SSD1306_NO_FONT_6X8

Exclude the 6x8 font data, ssd1306_char_font6x8(), and ssd1306_string_font6x8(). The 6x8 font costs 678 bytes when used.

◆ SSD1306_NO_FONT_8X16

#define SSD1306_NO_FONT_8X16

Exclude the 8x16 font data and ssd1306_string_f8x16(). The 8x16 font costs 1722 bytes when used.

◆ SSD1306_QUICK_BEGIN

#define SSD1306_QUICK_BEGIN

Skip the I2C device-present check during initialization. The normal begin() retries I2CStart until the display ACKs. With this flag, it assumes the display is already there. Saves 62 bytes.