Menu

Use PrintLargeFont

Vecheslav
2020-06-30
2020-06-30
  • Vecheslav

    Vecheslav - 2020-06-30

    Hi, in the latest version GCB have a PrintLargeFont,can I use it right away or should I create a new font 13 px ?
    Can give a demo for KS 0108 and PrintLargeFont
    Thank you!

     
    • Anobium

      Anobium - 2020-06-30

      @Vecheslav

      You have found an issue.... The PrintLargeFont compiles a lot of code and produces nothing. Something is wrong somewhere. Is this what you have found?

       
  • Vecheslav

    Vecheslav - 2020-06-30

    Misunderstanding due to my bad english.
    Should this example work?
    Or I must first create new font ,large font.

     #chip 16f877,20
    
    
      #include <glcd.h>
      #define GLCD_TYPE GLCD_TYPE_KS0108               
    
      #define GLCD_OLED_FONT2                 
    
    
      #define GLCD_CS1 PORTb.1
      #define GLCD_CS2 PORTb.0
      #define GLCD_DB0 PORTD.0 'D0 to pin 7 on LCD
      #define GLCD_DB1 PORTD.1 'D1 to pin 8 on LCD
      #define GLCD_DB2 PORTD.2 'D2 to pin 9 on LCD
      #define GLCD_DB3 PORTD.3 'D3 to pin 10 on LCD
      #define GLCD_DB4 PORTD.4 'D4 to pin 11 on LCD
      #define GLCD_DB5 PORTD.5 'D5 to pin 12 on LCD
      #define GLCD_DB6 PORTD.6 'D6 to pin 13 on LCD
      #define GLCD_DB7 PORTD.7 'D7 to pin 14 on LCD
    
      #define GLCD_RS PORTb.2
      #define GLCD_Enable PORTb.5
      #define GLCD_RW PORTb.4
      #define GLCD_RESET PORTC.2
    
    
       GLCDPrintLargeFont 0,0 "Hello World"
    
     
  • Anobium

    Anobium - 2020-06-30

    Your example should work. It does not. And, I do not know why.

    Use OLED font size 2 as a workaround?

     
  • JANIS

    JANIS - 2020-06-30

    I want to tell @Vecheslav to take into account that a larger font will be processed more slowly. This is the case if you want to display a variable that will change dynamically. I say this from experience.

     
  • Vecheslav

    Vecheslav - 2020-06-30

    I'm at a loss, this is the simplest code and it does not work
    PrintLargeFont compiles a lot of code ( Program Memory: 4027/8192 words (49,16%) Chip: 16F887) and produces nothing.

     #chip 16f887,20
      #include <glcd.h>
      #define GLCD_TYPE GLCD_TYPE_KS0108               
    
    ' #define GLCD_OLED_FONT                          
    ' #define GLCD_OLED_FONT2  
    
      #define GLCD_CS1 PORTb.1
      #define GLCD_CS2 PORTb.0
      #define GLCD_DB0 PORTD.0 'D0 to pin 7 on LCD
      #define GLCD_DB1 PORTD.1 'D1 to pin 8 on LCD
      #define GLCD_DB2 PORTD.2 'D2 to pin 9 on LCD
      #define GLCD_DB3 PORTD.3 'D3 to pin 10 on LCD
      #define GLCD_DB4 PORTD.4 'D4 to pin 11 on LCD
      #define GLCD_DB5 PORTD.5 'D5 to pin 12 on LCD
      #define GLCD_DB6 PORTD.6 'D6 to pin 13 on LCD
      #define GLCD_DB7 PORTD.7 'D7 to pin 14 on LCD
    
      #define GLCD_RS PORTb.2
      #define GLCD_Enable PORTb.5
      #define GLCD_RW PORTb.4
      #define GLCD_RESET PORTC.2
    
    
        GLCDPrintLargeFont 0,4,  "Great Cow Basic"
    
     
  • Anobium

    Anobium - 2020-06-30

    This is does not work. It generates nothing on the display. It will have to be investigated and resolved. Sorry.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.