![]() |
Display Simple Graphics library
v0.5
Library containing shape, text, and bitmap drawing functions called by various display drivers
|
#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... | |
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.
dev | Pointer to the display's device structure returned by the initialization function. |
eeBus | Pointer to the i2c bus where the EEPROM containing the font bitmaps is connected. |
void setTextFont | ( | screen_t * | dev, |
char | f | ||
) |
Sets the font face to be used. Range is from 0 to 3.
dev | Pointer to the display's device structure returned by the initialization function. |
f | Font 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. |