22. High-level API Reference
284
www.yoctopuce.com
YDisplay
display
→
set_orientation()
display
→
setOrientation()
Changes the display orientation.
js
function set_orientation(
newval
)
cpp
int set_orientation( Y_ORIENTATION_enum
newval
)
m
-(int) setOrientation : (Y_ORIENTATION_enum)
newval
pas
function set_orientation(
newval
: Integer): integer
vb
function set_orientation( ByVal
newval
As Integer) As Integer
cs
int set_orientation( int
newval
)
java
int set_orientation( int
newval
)
uwp
Task<int> set_orientation( int
newval
)
py
def set_orientation(
newval
)
php
function set_orientation(
$newval
)
es
function set_orientation(
newval
)
cmd
YDisplay
target
set_orientation
newval
Remember to call the
saveToFlash()
method of the module if the modification must be kept.
Parameters :
newval
a v a l u e a m o n g
Y _ O R I E N T A T I O N _ L E F T
,
Y _ O R I E N T A T I O N _ U P
,
Y_ORIENTATION_RIGHT
and
Y_ORIENTATION_DOWN
corresponding to the display
orientation
Returns :
YAPI_SUCCESS
if the call succeeds.
On failure, throws an exception or returns a negative error code.
Summary of Contents for Yocto-Display
Page 1: ...Yocto Display User Manual...
Page 2: ......
Page 40: ...34 www yoctopuce com...
Page 52: ...46 www yoctopuce com...
Page 84: ...78 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 422: ...416 www yoctopuce com...