Patent ID: 7794113

Claim:
An electronic device comprising: a base with a through hole defined therein; and a lighting apparatus comprising a bracket mounted to the base, a pivoting member pivotably attached to the bracket, a light fixed to the pivoting member, at least a resilient member arranged between the bracket and the pivoting member to restore the pivoting member, and a sliding member mounted to the bracket with a first end; wherein a latch slot is defined in the pivoting member for receiving a second end of the sliding member, the pivoting member is driven by the at least a resilient member to pivot and the second end of the sliding member slide in the latch slot, for achieving the pivoting member pivoting out or pivoting back through the through hole of the base; wherein the latch slot comprises an unbent first sliding rail, an L-shaped second sliding rail, and a V-shaped third sliding rail, the first, second and third sliding rails are communicated end to end.