parameters: (self)
docstring: Detect acceleration change.
docstring_summary: Detect acceleration change.
docstring_tokens: Detect acceleration change .
function: def detect_acceleration(self):
  
          """
          Detect acceleration change.
          """
  
          self.accelerometer.getAcceleration(self.ax, self.ay, self.az)
  
          ax = accel_value(self.ax)
          ay = accel_value(self.ay)
          az = accel_value(self.az)
  
          if ax > 1.2 or ay > 1.2 or az > 1.2:
              return True
          else:
              return False
function_tokens: def detect_acceleration ( self ) : self . accelerometer . getAcceleration ( self . ax , self . ay , self . az ) ax = accel_value ( self . ax ) ay = accel_value ( self . ay ) az = accel_value ( self . az ) if ax > 1.2 or ay > 1.2 or az > 1.2 : return True else : return False