Display Simple Graphics library  v0.5
Library containing shape, text, and bitmap drawing functions called by various display drivers
Functions
loadSetFonts.c File Reference
#include "simplegfx.h"

Functions

void loadFonts (screen_t *dev, i2c *eeBus)
 Internal function used to load the EEPROM addresses of the bitmapped fonts to the device's structure. This function is called by the init function in the display's library. It can be called at any time to point to fonts stored in an EEPROM attached to a different i2c bus. More...
 
void setTextFont (screen_t *dev, char f)
 Sets the font face to be used. Range is from 0 to 3. More...
 

Function Documentation

◆ loadFonts()

void loadFonts ( screen_t dev,
i2c *  eeBus 
)

Internal function used to load the EEPROM addresses of the bitmapped fonts to the device's structure. This function is called by the init function in the display's library. It can be called at any time to point to fonts stored in an EEPROM attached to a different i2c bus.

Parameters
devPointer to the display's device structure returned by the initialization function.
eeBusPointer to the i2c bus where the EEPROM containing the font bitmaps is connected.

◆ setTextFont()

void setTextFont ( screen_t dev,
char  f 
)

Sets the font face to be used. Range is from 0 to 3.

Parameters
devPointer to the display's device structure returned by the initialization function.
fFont face to use. Font face (0) is a sans-serif (console) font, face (1) is serif (typewriter) font, face (2) is a script (handwriting) font and face (3) is a bubble (outline/cartoon) font.