class Tinkerforge::BrickletRotaryEncoderV2
Public Instance Methods
count()
click to toggle source
Returns the current count of the encoder.
# File lib/tinderfridge/devices/bricklet_rotary_encoder_v2/bricklet_rotary_encoder_v2.rb, line 6 def count get_count(false) end
state()
click to toggle source
Returns the device's state.
Calls superclass method
# File lib/tinderfridge/devices/bricklet_rotary_encoder_v2/bricklet_rotary_encoder_v2.rb, line 11 def state super.merge( 'count' => count, 'pressed' => is_pressed, ) end