Arduino Toolkit - @rotaryEncoder/readCount
- :
[count, time] =readCount(obj) - :
[count, time] =readCount(obj, name, value) read count value from the rotary encoder.
subsubheading Inputs obj - rotary encoder object created with rotaryEncoder call.
name, value - optional name,value pairs
Valid option name pairs currently are:
- reset
Reset the count after reading (if true)
Outputs
count - returned count read from the encoder.
time - seconds since arduino started
See also: rotaryEncoder, resetCount.