ST7920WriteByte

Syntax:

    ST7920WriteByte ( byte_variable )

Explanation:

This command write to the appropriate location as specified by the current XY position.

This is called by the GLCD common routines.

See the data sheet for more information.

Example usage:

    ...

    SET GLCD_RS OFF

    ST7920WriteByte( SysCalcPositionY )          ' <<< the ST7920WriteByte instruction
    ST7920WriteByte( SysCalcPositionX )
    ' read data
    GLCDDataTempWord = ST7920GLCDReadByte
    GLCDDataTempWord = ST7920GLCDReadByte
    GLCDDataTempWord = (GLCDDataTempWord*256) + ST7920GLCDReadByte
    ...

Key line: ST7920WriteByte( SysCalcPositionY ) — with GLCD_RS set off, this writes an address byte (rather than display data) to select the Y position that the following ST7920GLCDReadByte calls will read from.

See Also: