The present invention is intended to stabilize a luminance and prevent a degradation during use in a display device of an active matrix driving system that arranges TFTs in matrix, by completely repairing a defective portion through application of a reverse voltage and repairing a short-circuit or leak area of a light emitting device. The IMD receives charging energy to recharge a battery during a charging energy acceptance period and rejects the charging energy during an actual charging energy rejection period. A method of determining the orientation of an apparatus includes measuring the resistance of a circuit completed between two conductive members in the apparatus, and determining the position of a freely movable conductive member in the apparatus from the measured resistance.