class UdooNeoRest::Accelerometer

Public Instance Methods

data() click to toggle source

Get the value for the Accelerometer

# File lib/udooneorest/accelerometer.rb, line 44
def data
  UdooNeoRest::Base.cat_and_status UdooNeoRest::Base.axis_path_data('Accelerometer')
end
enable(value) click to toggle source

Enable/Disable the Accelerometer

value : 0 = Disable, 1 = Enable

# File lib/udooneorest/accelerometer.rb, line 37
def enable(value)
  UdooNeoRest::Base.change_state UdooNeoRest::Base.axis_path_enable('Accelerometer'), value
end