Menu

#Ifdef question

Help
MBB
2023-10-24
2023-10-24
  • MBB

    MBB - 2023-10-24

    In the include file glcd.h, it has this code for the2in13 and 7in5 e-paper displays:

    Ifdef GLCD_EXTENDEDFONTSET1 then
    
       GLCDCharCol3 = GLCDCharCol3Extended1
       GLCDCharCol4 = GLCDCharCol4Extended1
       GLCDCharCol5 = GLCDCharCol5Extended1
       GLCDCharCol6 = GLCDCharCol6Extended1
       GLCDCharCol7 = GLCDCharCol7Extended1
    
    End If
    
    The Ifdef and End If do not have the # sign in front.
    
    Is this intentional?
    
     
    • Anobium

      Anobium - 2023-10-24

      Yes, as this configuration for many other fonts sets like Greek, not just the 2in13 and 7in5 displays.

      There is no # as this is all within a #script.

      So, yes, intentional and very important.

      Remember if the methods are called/used these constants ( variables in a script are actually constants) used no system resources.

       

      Last edit: Anobium 2023-10-24

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.