• 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

    PIC18F1330 PLL problem

    Thread Starter: rcurl

    I'm just starting out on a new project that uses a PIC18F1330. I haven't used this specific chip before, so I began by trying to blink an LED just...

    towlerg Yesterday, 16:26 Go to last post
    towlerg-21522

    Pic16f18877 oread

    Thread Starter: evoortman

    Hi, On a PIC16F18877 the OREAD command doesn't seem to work. The code is working on a PIC16F1939. Both controllers use 32MHz int osc. If i...

    towlerg Yesterday, 16:25 Go to last post
    palamont-28794

    MID$ Problem with a PIC18F25K22

    Thread Starter: palamont

    Hi everybody, I encounter a strange problem : I have a string of 230 characters. This string is divided into 10 segments of 23 characters, with a...

    palamont Yesterday, 10:08 Go to last post