
22. High-level API Reference
350
www.yoctopuce.com
YAnButton
anbutton
→
get_pulseCounter()
anbutton
→
pulseCounter()
Returns the pulse counter value.
js
function get_pulseCounter( )
cpp
s64 get_pulseCounter( )
m
-(s64) pulseCounter
pas
function get_pulseCounter( ): int64
vb
function get_pulseCounter( ) As Long
cs
long get_pulseCounter( )
java
long get_pulseCounter( )
uwp
Task<long> get_pulseCounter( )
py
def get_pulseCounter( )
php
function get_pulseCounter( )
es
function get_pulseCounter( )
cmd
YAnButton
target
get_pulseCounter
The value is a 32 bit integer. In case of overflow (>=2^32), the counter will wrap. To reset the counter,
just call the resetCounter() method.
Returns :
an integer corresponding to the pulse counter value
On failure, throws an exception or returns
Y_PULSECOUNTER_INVALID
.
Содержание 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...