ST7920Tile

Syntax:

    ST7920Tile ( word variable )

Explanation:

This command tiles the screen with the word value provided.

Example usage:

    Dim tileValue as word
    tileValue = (0x55 * 256 ) + 0x55
    ST7920Tile (tileValue) 'tile the screen with a nice cross hatch          ' <<< the ST7920Tile instruction

Key line: ST7920Tile (tileValue) — repeats the 16-bit pattern tileValue (here 0x5555) across the entire screen; since the high and low bytes are identical alternating-bit patterns, the result is a cross-hatch fill.

See Also:

  • GLCD Overview — category overview
  • ST7920cTile — tiling with a Chinese character instead of a raw pattern
  • ST7920gTile — the graphic-mode two-byte tiling equivalent