
www.4dsystems.com.au
µ
V
G
A
-PICASO-
MD1
30
6.1.18
R
ead Pixel
(
R
)
Serial Syntax :
cmd, x
(msb:lsb),
y
(msb:lsb)
4DGL Syntax :
(refer to 4DGL programmers manual)
cmd :
52
hex
, R
ascii
x :
horizontal pixel position. 2 bytes
y :
vertical pixel position. 2 bytes.
Description :
This command will read the colour value of pixel at location
(x, y)
on
the screen and return it to the host. This is a useful command when for example a
white pointer is moved across the screen and the host can read the colour on the
screen and switch the colour of the pointer when it’s on top of a light coloured area.
Example :
52
hex
, 00
hex
, 01
hex
, 00
hex
, 01
hex
PICASO reply : C0
hex
Reads a blue (
C0
hex) pixel at location x =
1
dec (
01
hex) and y =
1
dec (
01
hex).