Write Scan Line

\i D N W word::no_of_pixels word::p0 ...

Parameter Type Range Description
no_of_pixels word 1 ... display width number of pixels to write
p0 ... color_16bit 0x0000 ... 0xFFFF color value for pixels

Writes a horizontal scan line consisting of no_of_pixels pixels onto the screen.

Note

Response: [ACK]

Example

\iDNW\D7\X0\XFFFF\XF8\XFFFF\XF8\XFFFF\X0

This example will write 7 pixels to the screen, starting from the current cursor position. The first and the last pixel are black, pixels in between are white or red alternatingly.

See also:

Write Scan Line and Advance
Read Scan Line
Write 1D/2D Run-Length Encoded Scan Line
Read 1D/2D Run-Length Encoded Scan Line
16-Bit Color Values