Author Topic: HOW TO MODIFY EXAMPLE CODE FOR FONTS OTHER THAN 5X7  (Read 910 times)

semed

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 0
    • View Profile
HOW TO MODIFY EXAMPLE CODE FOR FONTS OTHER THAN 5X7
« 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
« Last Edit: February 19, 2018, 11:37:58 AM by semed »

 

Sample Code Question for NHD‐C0220BiZ‐FS(RGB)‐FBW‐3VM LCD

Started by SteveCBoard Character LCDs

Replies: 2
Views: 5685
Last post July 31, 2014, 08:44:29 PM
by SteveC
NHD‐0420CW‐AG3 + I2C + PIC assembly code: trouble getting started

Started by RichardRBoard OLEDs

Replies: 4
Views: 6362
Last post December 17, 2015, 03:12:49 AM
by RichardR
Korean Hex GB code for OLED multi font display NHD-2.7-12864UMY3

Started by newhavenuserBoard OLEDs

Replies: 0
Views: 3746
Last post May 05, 2017, 01:17:45 PM
by newhavenuser
Demo code for NHD-0216K3Z-FS(RGB)-FBW-V3 module on an ATMEL ATtiny 2313A

Started by swulfBoard Customer Projects

Replies: 1
Views: 4730
Last post December 11, 2017, 07:56:43 AM
by Paul_B
Arduino demo code for running the NHD-0420DZW-AB5 OLED display via SPI

Started by llameroBoard OLEDs

Replies: 1
Views: 2304
Last post May 21, 2018, 11:28:30 AM
by Ted_M