\i M ? D
Returns the parameters of the currently active draw screen.
Response: | [ACK] screen viewport vp_ori text_ori pos_x pos_y [ACK] |
Parameter | Type | Range | Description |
---|---|---|---|
screen | byte | M, 0 ... number of screens - 1 | index of the active draw screen (M = main screen) |
viewport | byte | 0 ... 8 | index of the screen's active viewport |
vp_ori | byte | 0 ... 3 | orientation of the viewport relative to the screen orientation |
text_ori | byte | 0 ... 3 | orientation of the text/graphic items relative to the viewport orientation |
pos_x | word | 0 ... display width - 1 | horizontal coordinate of the cursor position related to the viewport |
pos_y | word | 0 ... display height - 1 | vertical coordinate of the cursor position related to the viewport |
Response Example
[ACK]M[05][00][01][01][2C][00][00][ACK]
The currently active draw screen is the main screen ('M'), viewport 5 of this screen is selected, the viewport orientation is unchanged, text and graphics are rotated by 90° and the cursor is currently at the coordinates x = 300 (0x12C) and y = 0 (0x0).
Note
Not supported by: DPC3050, DPC3020, DPC2060, DPC10xx
See also:
Screen Memory Related Commands
Set Draw Screen
Set View Screen
Get View Screen Parameters
LCD Attribute Commands
Copyright © demmel products gmbh. All rights reserved.