Set Text/Graphic Orientation

\i C o byte::orientation

Parameter Type Range Description
orientation byte 0 ... 3 screen orientation

Sets the orientation of subsequent text and graphic drawing to one of the following modes:

Orientation Description
0 landscape mode (0°)
1 portrait mode (90°)
2 landscape mode upside down (180°)
3 portrait mode upside down (270°)

Note

Response: [ACK]

Example

\i!                          { Reset All }
\iCL\x55                     { Set Line Style to dotted }

\iCK\D50\D130                { Set Cursor Position to Origin X=50 / Y=130 }
\iCT\x83\D65\D50             { Set Text Alignment to Width=65 / Height=50 }
\iDR\x0\D65\D50              { Draw Rectangle with width=65 / height=50 }
\iDTText Orientation = 0\0   { Draw Text "Text Orientation = 0" }

\iCK\D150\D130               { Set Cursor Position to Origin X=150 / Y=130 }
\iCo\1                       { Set Text Orientation to 90° }
\iCT\x83\D65\D50             { Set Text Alignment to Width=65 / Height=50 }
\iDTText Orientation = 1\0   { Draw Text "Text Orientation = 1" }

{ ! Draw Rectangle is not affected by Text Orientation,
    thus the point of origin is different and width are swapped }
\iCK\D150\D66                { Set Cursor Position to X=150 / Y=66 }
\iDR\x0\D50\D65              { Draw Rectangle with width=50 / height=65 }

See also:

Set Screen Orientation
Concept of Viewports
Set Text Alignment
Set Cursor Position
Draw Rectangle