LCDSpace

Syntax:

    LCDSpace value

Command Availability:

Available on all microcontrollers.

Explanation:

The LCDSpace command will print the required number of spaces on the LCD display

value is a byte value from 1 to 255. Where the value is the number of spaces required.

Example :

    Locate 0,0
    Print "Reset"
    wait 1 s
    cls

    LCD_Space_Tests:

    lcdcursor flash

    lcdspace 12          ' <<< the LCDSpace instruction

    print "*"

Key line: lcdspace 12 — writes 12 blank characters starting at the current cursor position, advancing the cursor 12 columns so the following print "*" lands after the gap.

See Also:

  • LCD Overview — category overview
  • CLS — clearing the whole display rather than writing spaces

Supported in <LCD.H>