Patent attributes
Disclosed is a foldable electronic device including a flexible display, a sensor panel, a sensor circuitry, a first housing, a second housing, and a folding structure configured to rotate the first housing or the second housing. The sensor panel includes a plurality of loop coils. The sensor circuitry transmits or receives a first resonance signal to recognize an operation of an electronic pen through the plurality of loop coils, outputs a second resonance signal through a first loop coil included in one panel part of the first panel part or the second panel part, receives the second resonance signal through a second loop coil included in a remaining one panel part of the first panel part or the second panel part, and determines an angle between the first housing and the second housing, based on the received second resonance signal.