def standby(self):
        """
        Put the device into standby mode so that the registers can be set.
        @return: No return value
        """
        register = self.MMA8452Q_Register['CTRL_REG1']
        self.board.i2c_read_request(self.address, register, 1,
                                    Constants.I2C_READ | Constants.I2C_END_TX_MASK,
                                    self.data_val, Constants.CB_TYPE_DIRECT)


        ctrl1 = self.wait_for_read_result()

        ctrl1 = (ctrl1[self.data_start]) & ~0x01
        self.callback_data = []

        self.board.i2c_write_request(self.address, [register, ctrl1])
def standby ( self ) : register = self . MMA8452Q_Register [ 'CTRL_REG1' ] self . board . i2c_read_request ( self . address , register , 1 , Constants . I2C_READ | Constants . I2C_END_TX_MASK , self . data_val , Constants . CB_TYPE_DIRECT ) ctrl1 = self . wait_for_read_result ( ) ctrl1 = ( ctrl1 [ self . data_start ] ) & ~ 0x01 self . callback_data = [ ] self . board . i2c_write_request ( self . address , [ register , ctrl1 ] )
Put the device into standby mode so that the registers can be set.
        @return: No return value