• 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

    towlerg-21522

    UltraEdit adaption.

    Thread Starter: johngb

    I didn't know where to post this thread but as I guess this section is one of the most viewed I am posting here. After Les mentioned UltraEdit on...

    towlerg Today, 00:52 Go to last post
    joesaliba-353

    Correct use of bit names

    Thread Starter: joesaliba

    So I have the following: - Symbol RBIF = INTCON.0 ' Port B Interrupt-On-Change (IOCx) Interrupt Flag bit Symbol INT0IF = INTCON.1 ' INT0...

    joesaliba Yesterday, 17:20 Go to last post
    xldaedalus-432

    Coming out of an ISR

    Thread Starter: johngb

    I am adding error handlers to my P-RTOS24 and want to handle the situation where a task hangs and blocks returning to the OS. To do this I have a...

    xldaedalus Today, 08:33 Go to last post