Proton BASIC Compiler - Re-initialise LCD


  • PicŪ Basic


  • Re-initialise LCD

    Sometimes, for one reason or another, an LCD may lose its way such as displaying random characters. At these times it can be useful to re-initialise the display.
    This is how Rick of rcurl reported a previous suggestion from Les.

    You must first bring the BPFsystem variable into the BASIC program.

    Dim BPF as Byte SYSTEM

    Then either clear bit 0 of it or clear the whole variable: -

    Clear BPF

    This will force the compiler's LCD subroutine to do an initialisation of the LCD whenever PRINT, CLS, or CURSOR is used.
  • Recent Activity

    John Drew-26

    Floating point strangeness

    Thread Starter: rcurl

    I just recompiled code that was previously compiled about a year ago, and now I'm getting some very strange results from a simple formula that...

    John Drew Yesterday, 23:54 Go to last post