Class: Tinkerforge::BrickletMultiTouchV2

Inherits:
Object
  • Object
show all
Defined in:
lib/tinderfridge/devices/bricklet_multi_touch_v2/bricklet_multi_touch_v2.rb

Instance Method Summary collapse

Instance Method Details

#stateObject

Returns the device’s state.



6
7
8
9
10
11
12
# File 'lib/tinderfridge/devices/bricklet_multi_touch_v2/bricklet_multi_touch_v2.rb', line 6

def state
  super.merge(
    'electrode_config'      => get_electrode_config.map { |c| c ? '1' : '0' }.join,
    'electrode_sensitivity' => get_electrode_sensitivity,
    'touch_led_config'      => get_touch_led_config,
  )
end