Class: Tinkerforge::BrickHAT
- Inherits:
-
Object
- Object
- Tinkerforge::BrickHAT
- Defined in:
- lib/tinderfridge/devices/brick_hat/brick_hat.rb
Instance Method Summary collapse
-
#state ⇒ Object
Returns the device’s state.
Instance Method Details
#state ⇒ Object
Returns the device’s state.
6 7 8 9 10 11 12 13 14 |
# File 'lib/tinderfridge/devices/brick_hat/brick_hat.rb', line 6 def state volts = get_voltages super.merge( 'bricklet_power' => get_bricklet_power, 'usb_voltage' => volts[0], 'dc_voltage' => volts[1], 'sleep_mode' => get_sleep_mode, ) end |