22. High-level API Reference
368
www.yoctopuce.com
YAnButton
anbutton
→
set_sensitivity()
anbutton
→
setSensitivity()
Changes the sensibility for the input (between 1 and 1000) for triggering user callbacks.
js
function set_sensitivity(
newval
)
cpp
int set_sensitivity( int
newval
)
m
-(int) setSensitivity : (int)
newval
pas
function set_sensitivity(
newval
: LongInt): integer
vb
function set_sensitivity( ByVal
newval
As Integer) As Integer
cs
int set_sensitivity( int
newval
)
java
int set_sensitivity( int
newval
)
uwp
Task<int> set_sensitivity( int
newval
)
py
def set_sensitivity(
newval
)
php
function set_sensitivity(
$newval
)
es
function set_sensitivity(
newval
)
cmd
YAnButton
target
set_sensitivity
newval
The sensibility is used to filter variations around a fixed value, but does not preclude the transmission of
events when the input value evolves constantly in the same direction. Special case: when the value
1000 is used, the callback will only be thrown when the logical state of the input switches from pressed
to released and back. Remember to call the
saveToFlash()
method of the module if the
modification must be kept.
Parameters :
newval
an integer corresponding to the sensibility for the input (between 1 and 1000) for triggering user
callbacks
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...