ST7920WriteCommand

Syntax:

    ST7920WriteCommand ( byte_variable)

Explanation:

This command writes a command to the controller.

See the data sheet for more information.

Example usage:

    ...
    ST7920WriteCommand(0x36) ' set the graphics mode on          ' <<< the ST7920WriteCommand instruction
    GLCD_TYPE_ST7920_GRAPHICS_MODE = true
    ...

Key line: ST7920WriteCommand(0x36) — sends the raw command byte 0x36 to the ST7920 controller to enable graphics mode; the following line updates the library’s own GLCD_TYPE_ST7920_GRAPHICS_MODE flag to keep GCBASIC’s internal state consistent with the controller.

See Also: