An electronic device capable of adjusting light emitting frequency, the electronic device comprising: an oscillator , used to generate an oscillation signal (So); a microcontroller , connected to the oscillator , wherein the microcontroller is used to define that a quantity of oscillation times of the oscillator within a unit time period (t) is an original quantity of oscillation times (n0), and set a correspondence between a switching period and the original quantity of oscillation times (n0), and the microcontroller is further used to receive the oscillation signal (So) to calculate a time elapse; and a light emitting module , connected to the microcontroller , wherein the microcontroller is configured to control on or off of the light emitting module according to the switching period and the time elapse, wherein the microcontroller further comprises: a counting module , used to count, after receiving a correction trigger signal (Ss), a total quantity of oscillation times (N) of the oscillator according to the oscillation signal (So); and characterized by an adjustment module , used to obtain a corrected quantity of oscillation times (n') within the unit time period (t) according to the total quantity of oscillation times (N) counted within a sampling time period (T), and reset a correspondence between the switching period and the corrected quantity of oscillation times (n'). an oscillator , used to generate an oscillation signal (So); a microcontroller , connected to the oscillator , wherein the microcontroller is used to define that a quantity of oscillation times of the oscillator within a unit time period (t) is an original quantity of oscillation times (n0), and set a correspondence between a switching period and the original quantity of oscillation times (n0), and the microcontroller is further used to receive the oscillation signal (So) to calculate a time elapse; and a light emitting module , connected to the microcontroller , wherein the microcontroller is configured to control on or off of the light emitting module according to the switching period and the time elapse, wherein the microcontroller further comprises: a counting module , used to count, after receiving a correction trigger signal (Ss), a total quantity of oscillation times (N) of the oscillator according to the oscillation signal (So); and characterized by an adjustment module , used to obtain a corrected quantity of oscillation times (n') within the unit time period (t) according to the total quantity of oscillation times (N) counted within a sampling time period (T), and reset a correspondence between the switching period and the corrected quantity of oscillation times (n'). a counting module , used to count, after receiving a correction trigger signal (Ss), a total quantity of oscillation times (N) of the oscillator according to the oscillation signal (So); and characterized by an adjustment module , used to obtain a corrected quantity of oscillation times (n') within the unit time period (t) according to the total quantity of oscillation times (N) counted within a sampling time period (T), and reset a correspondence between the switching period and the corrected quantity of oscillation times (n'). <EOS>