Patent ID: 8063859

Claim:
A semiconductor device comprising: a transistor; a first switch; a second switch; a third switch; a fourth switch; a fifth switch; and a capacitor, wherein: one of a source and a drain of the transistor is electrically connected to a light-emitting element through the first switch, the other of the source and the drain of the transistor is electrically connected to a first wiring, a gate of the transistor is electrically connected to the one of the source and the drain of the transistor through the second switch, a first terminal of the capacitor is electrically connected to the gate of the transistor, a second terminal of the capacitor is electrically connected to the first wiring through the third switch, a second wiring is electrically connected to the second terminal of the capacitor through the fourth switch, and a third wiring is electrically connected to the second switch through the fifth switch.