22. High-level API Reference
www.yoctopuce.com
245
YDisplay
display
→
fade()
Smoothly changes the brightness of the screen to produce a fade-in or fade-out effect.
js
function fade(
brightness
,
duration
)
cpp
int fade( int
brightness
, int
duration
)
m
-(int) fade : (int)
brightness
: (int)
duration
pas
function fade(
brightness
: LongInt,
duration
: LongInt): LongInt
vb
function fade( ) As Integer
cs
int fade( int
brightness
, int
duration
)
java
int fade( int
brightness
, int
duration
)
uwp
Task<int> fade( int
brightness
, int
duration
)
py
def fade(
brightness
,
duration
)
php
function fade(
$brightness
,
$duration
)
es
function fade(
brightness
,
duration
)
cmd
YDisplay
target
fade
brightness
duration
Parameters :
brightness
the new screen brightness
duration
duration of the brightness transition, in milliseconds.
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...