Newhaven Display Forum

Newhaven Products => OLEDs => Topic started by: semed on February 18, 2018, 03:56:54 PM

Title: HOW TO MODIFY EXAMPLE CODE FOR FONTS OTHER THAN 5X7
Post by: semed on February 18, 2018, 03:56:54 PM
How do i modify the example code posted online  https://newhavendisplay.com/appnotes/excode/txt/OLED/OLED_25664.txt
 to accept fonts other than 5x7

I know its in the showfont functions
void Show_Font57_25664(unsigned char a, unsigned char b, unsigned char c, unsigned char d)
{
unsigned char *Src_Pointer=0;
unsigned char i,Font,MSB_1,LSB_1,MSB_2,LSB_2;

   switch(a)
   {
      case 1:
         Src_Pointer=&Ascii_1[(b-1)][0];
         break;
      case 2:
         //Src_Pointer=&Ascii_2[(b-1)][0];
         break;
   }
Not sure exactly how. any suggestions? thanks