Newhaven Products > OLEDs

HOW TO MODIFY EXAMPLE CODE FOR FONTS OTHER THAN 5X7

(1/1)

semed:
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

Navigation

[0] Message Index

Go to full version