CPC H04M 1/72454 (2021.01) [H04M 1/0268 (2013.01); H04W 52/027 (2013.01); H04M 2250/12 (2013.01)] | 20 Claims |
16. A method for controlling a motor of an electronic device including a housing including a first housing and a second housing, wherein the second housing is configured to receive at least a portion of the first housing and to guide a linear movement of the first housing with respect to the second housing, a display configured to move between the compact position and an extended position based on the linear movement and a motor configured to output a force to cause the liner movement, the method comprising the operations of:
identifying a posture of the electronic device using a sensor; and
changing an output force of the motor based on an angle between a direction of the linear movement and a direction of gravitational acceleration.
|