Class: Tinkerforge::BrickletRotaryEncoderV2
- Inherits:
-
Object
- Object
- Tinkerforge::BrickletRotaryEncoderV2
- Defined in:
- lib/tinderfridge/devices/bricklet_rotary_encoder_v2/bricklet_rotary_encoder_v2.rb
Instance Method Summary collapse
-
#count ⇒ Object
Returns the current count of the encoder.
-
#state ⇒ Object
Returns the device’s state.
Instance Method Details
#count ⇒ Object
Returns the current count of the encoder.
6 7 8 |
# File 'lib/tinderfridge/devices/bricklet_rotary_encoder_v2/bricklet_rotary_encoder_v2.rb', line 6 def count get_count(false) end |
#state ⇒ Object
Returns the device’s state.
11 12 13 14 15 16 |
# 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 |