Read Scan Line

\i D N R word::no_of_pixels

Parameter Type Range Description
no_of_pixels word 1 ... display width number of pixel to be scanned

Reads the color information of no_of_pixels pixels in a horizontal line from left to right, starting from the current cursor position.

Note

Response: [ACK] p0 ... [ACK]

Parameter Type Range Description
p0 ... word 0x0000 ... 0xFFFF color value for pixels

Response Example

[ACK][00][00][00][00][FF][FF][FF][FF][FF][FF][ACK]

In this example a line of 5 pixels has been scanned. The first two pixels are black and pixels 3 to 5 are white.

See also:

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