This disclosure discloses a light-emitting device. The micro electro-mechanical sensor includes a substrate, and a conducting plane disposed on the substrate. The memory is programmed with a compensation that adjusts an output frequency of the timing circuit such that the output frequency of the timing circuit does not coincide with a frequency discontinuity that occurs within an output of the timing circuit.