22. High-level API Reference
344
www.yoctopuce.com
YAnButton
anbutton
→
get_isPressed()
anbutton
→
isPressed()
Returns true if the input (considered as binary) is active (closed contact), and false otherwise.
js
function get_isPressed( )
cpp
Y_ISPRESSED_enum get_isPressed( )
m
-(Y_ISPRESSED_enum) isPressed
pas
function get_isPressed( ): Integer
vb
function get_isPressed( ) As Integer
cs
int get_isPressed( )
java
int get_isPressed( )
uwp
Task<int> get_isPressed( )
py
def get_isPressed( )
php
function get_isPressed( )
es
function get_isPressed( )
cmd
YAnButton
target
get_isPressed
Returns :
either
Y_ISPRESSED_FALSE
or
Y_ISPRESSED_TRUE
, according to true if the input (considered as
binary) is active (closed contact), and false otherwise
On failure, throws an exception or returns
Y_ISPRESSED_INVALID
.
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...