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.
Содержание Yocto-Display
Страница 1: ...Yocto Display User Manual...
Страница 2: ......
Страница 40: ...34 www yoctopuce com...
Страница 52: ...46 www yoctopuce com...
Страница 84: ...78 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...22 High level API Reference 152 www yoctopuce com On failure throws an exception or returns a negative error code...
Страница 422: ...416 www yoctopuce com...
Страница 424: ...24 Characteristics 418 www yoctopuce com...