ST7920WriteData

Syntax:

    ST7920WriteData ( byte_variable)

Explanation:

This command writes data to the controller.

See the data sheet for more information.

Example usage:

    ...
    for yy = 0 to ( GLCD_HEIGHT - 1 )
      ST7920gLocate(0, yy)
      for xx = 0 to ( GLCD_COLS -1 )
        ST7920WriteData( 0x55 )          ' <<< the ST7920WriteData instruction
        ST7920WriteData( 0x55 )
      next
    next
    ...

Key line: ST7920WriteData( 0x55 ) — writes the raw byte 0x55 to the display’s DDRAM at the position set by ST7920gLocate; called twice per column here to fill both bytes needed at that pixel location.

See Also: