SSD1306 OLED display driver  1.7.2
This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
Functions | Variables
FONTS: Supported LCD fonts

Functions

void ssd1306_setCursor (lcdint_t x, lcdint_t y)
 Sets cursor position for text mode print functions. More...
 
void ssd1306_setFixedFont (const uint8_t *progmemFont)
 
void ssd1306_setFont6x8 (const uint8_t *progmemFont) __attribute__((deprecated))
 
void ssd1306_getCharBitmap (char ch, SCharInfo *info)
 returns char data for currently set (active) font. More...
 

Variables

const PROGMEM uint8_t ssd1306xled_font6x8 []
 
const PROGMEM uint8_t ssd1306xled_font6x8_AB []
 
const PROGMEM uint8_t ssd1306xled_font5x7 []
 
const PROGMEM uint8_t ssd1306xled_font5x7_AB []
 
const PROGMEM uint8_t digital_font5x7_123 []
 
const PROGMEM uint8_t digital_font5x7_AB []
 
const PROGMEM uint8_t digital_font5x7 []
 
const PROGMEM uint8_t courier_new_font11x16_digits []
 
const PROGMEM uint8_t comic_sans_font24x32_123 []
 

Detailed Description

Function Documentation

◆ ssd1306_getCharBitmap()

void ssd1306_getCharBitmap ( char  ch,
SCharInfo info 
)

returns char data for currently set (active) font.

Function returns char data for currently set font: pointer to progmem data for specified char, and width, height of the char. You can use these data to draw char manually using ssd1306_drawBitmap(), ssd1331_drawMonoBitmap8() or NanoCanvasOps::drawBitmap1().

Parameters
chchar to read from set font
infopointer to SCharInfo structure to fill with char data
See also
ssd1306_setFixedFont

Definition at line 70 of file ssd1306_generic.c.

◆ ssd1306_setCursor()

void ssd1306_setCursor ( lcdint_t  x,
lcdint_t  y 
)

Sets cursor position for text mode print functions.

Sets cursor position for text mode print functions.

Parameters
xxpos in pixels
yypos in pixels

Definition at line 55 of file ssd1306_generic.c.

◆ ssd1306_setFixedFont()

void ssd1306_setFixedFont ( const uint8_t *  progmemFont)

Function allows to set another fixed font for the library. By default, the font supports only first 128 - 32 ascii chars. First 32 chars of ascii table are non-printable, and removed from the font table to reduce flash memory consumption. Default font doesn't support russian characters. Using this function you can implement your own fonts. First font char must be started with <space> image. Font data should be in the following format: | 0x00 | 0xWW | 0xHH | 0xAA | FONT DATA |, where 0xWW - width in pixels, 0xHH - height in pixels, 0xAA - ascii offset (0x20).
For fixed font 6x8 each char is presented by 6 bytes:
COL0, COL1, COL2, COL3, COL4, COL5.
For fixed font 4x16 each char is presented by 4x16/8 = 8 bytes:
ROW0: COL0, COL1, COL2, COL3,
ROW1: COL0, COL1, COL2, COL3

Parameters
progmemFont- font to setup located in Flash area

Definition at line 61 of file ssd1306_generic.c.

◆ ssd1306_setFont6x8()

void ssd1306_setFont6x8 ( const uint8_t *  progmemFont)

Function allows to set another font for the library. By default, the font supports only first 128 - 32 ascii chars. First 32 chars of ascii table are non-printable, and removed from the font table to reduce flash memory consumption. Default font doesn't support russian characters. Using this function you can implement your own fonts. First font char must be started with <space> image.

Parameters
progmemFont- font to setup located in Flash area
Deprecated:
Use ssd1306_setFixedFont() instead.

Definition at line 856 of file ssd1306_1bit.c.

Variable Documentation

◆ comic_sans_font24x32_123

const uint8_t comic_sans_font24x32_123

Comic Sans ASCII font 24x32 with digits only (Ascii codes 32 - 64).

Warning
can be used only with ssd1306_printFixed() and ssd1306_setFixedFont() functions.

Definition at line 615 of file ssd1306_fonts.c.

◆ courier_new_font11x16_digits

const PROGMEM uint8_t courier_new_font11x16_digits[]

Standard ASCII font 11x16 with digits only (Ascii codes 32 - 64).

Warning
can be used only with ssd1306_printFixed() and ssd1306_setFixedFont() functions.

Definition at line 576 of file ssd1306_fonts.c.

◆ digital_font5x7

const uint8_t digital_font5x7

Digital ASCII 5x7 font

Definition at line 230 of file ssd1306_fonts.c.

◆ digital_font5x7_123

const PROGMEM uint8_t digital_font5x7_123[]

Digital ASCII 5x7 font with only digits and operation signs

◆ digital_font5x7_AB

const uint8_t digital_font5x7_AB

Digital ASCII 5x7 font with only capital letters

Definition at line 331 of file ssd1306_fonts.c.

◆ ssd1306xled_font5x7

const PROGMEM uint8_t ssd1306xled_font5x7[]

Standard ASCII 5x7 font

Definition at line 401 of file ssd1306_fonts.c.

◆ ssd1306xled_font5x7_AB

const PROGMEM uint8_t ssd1306xled_font5x7_AB[]

Standard ASCII 5x7 font with only capital letters

Definition at line 503 of file ssd1306_fonts.c.

◆ ssd1306xled_font6x8

const PROGMEM uint8_t ssd1306xled_font6x8[]

Standard ASCII 6x8 font

Definition at line 41 of file ssd1306_fonts.c.

◆ ssd1306xled_font6x8_AB

const PROGMEM uint8_t ssd1306xled_font6x8_AB[]

Standard ASCII 6x8 AB font with only capital letters

Definition at line 144 of file ssd1306_fonts.c.