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
.
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...