Ik heb sinds kort een GLCD, en ben daar een beetje mee aan het spelen. Nu heb ik een klein scriptje wat de heletijd tussen 3 teksten wisseld. Dit doet het perfect op een ding na, De cls functie die slaat hij gewoon over en gaat hij vervolgens verder met schrijven. Dus als de kortere zin afgelopen is staat het einde van de vorige zin er achter. Ik snap niet waarom de CLS functie het niet doet.

Device 16F877A  
    XTAL = 8        
    ALL_DIGITAL = TRUE

Config hs_osc,wdt_off,lvp_off   

  'MikroElektronika EP5 GLCD Definition
        Declare LCD_TYPE       SAMSUNG
        Declare LCD_INTERFACE  8         
        Declare LCD_DTPIN      PORTD.0
        Declare LCD_ENPIN      PORTB.4
        Declare LCD_RSPIN      PORTB.2
        Declare LCD_RWPIN      PORTB.3
        Declare LCD_RSTPIN     PORTB.5
        Declare LCD_CS1PIN     PORTB.0  ' Was Portb.0 }Bij mij niet
        Declare LCD_CS2PIN     PORTB.1  'Was portb.1  }van toepassing
        Declare GLCD_CS_INVERT On
        High                   PORTB.5
'End of MikroElektronika EP5 GLCD Definition
  INTERNAL_FONT = On		
  FONT_ADDR = 0
       DelayMS 1000
    ' clear screen and print some text
    Cls
     While 1 = 1
          Cls  
    Print At 0,0, "Test display "
         
       DelayMS 1000
       
      Cls
    Print At 1,0, "- 128 * 64 pixel"
       
       DelayMS 1000
       
       Cls
    Print At 2,0, "- TEST"
      
      DelayMS 1000
      Wend
    Include "FONT.INC"
      End

[edit]

Ik heb "Declare GLCD_CS_INVERT" off gezet in plaats van on, en nou doet hij het.