Skip to content

Instantly share code, notes, and snippets.

View smiler's full-sized avatar

Christian Axelsson smiler

  • Uppsala, Sweden
View GitHub Profile
static void lcd_font_char_xy(int xPos, int yPos, char character, FONT_INFO* fontInfo, uint16_t fgColor, uint16_t bgColor)
{
unsigned short i = 0;
unsigned short j = 0;
unsigned short height = fontInfo->heightPages * 8;
unsigned short width;
unsigned short tableOffset = character - fontInfo->startChar;//32;
FONT_CHAR_INFO fontCharInfo = fontInfo->charInfo[(tableOffset)];
uint16_t offset = fontCharInfo.offset;
uint16_t lineOffset;