Go Down

Topic: 20x4, 16x2 LCD - Modified Large Font Engine (Read 505 times) previous topic - next topic


May 25, 2016, 03:00 am Last Edit: May 27, 2016, 10:07 pm by varind Reason: Added image and code snippet
Based on characters by Michael Pilcher

I've added some charachters to Michael's collection, and made it easier to pass text to the LCD by using strings.  This code will print a small character if it can't find a large version, and will keep track of your cursor position.

Here's a snippet:

 char data1[] = "Oh, G";
 char data2[] = "EE";
 char data3[] = "123...";

 char_x = 0;
 char_y = 0;
 printBigCharacters(data1, char_x, char_y);
 printBigCharacters(data2, char_x, char_y);
 char_x = 0;
 char_y = 2;
 printBigCharacters(data3, char_x, char_y);

GitHub link:

(too big to post here)

Go Up