And a power control method of the electronic device
暂无分享,去创建一个
An electronic device comprises a main control system, a touch screen control unit, a power supply switch and a touch screen. The touch screen comprises infrared corresponding to the power supply switch. A power supply continuously supplies power for the touch screen control unit and the touch screen. The touch screen control unit comprises a scanning control module, a touch detection module and apower supply control module. The scanning control module continuously scans the on-off state of an optical line corresponding to the power supply switch. The touch detection module judges whether thetime spent for a user to block the optical line corresponding to the power supply switch each time exceeds a first preset time according to the scanning result. The power supply control module controls the on-off of the power supply of the main control system when the time spent for a user to block the optical line corresponding to the power supply switch each time exceeds the first preset time. The invention further provides a power supply control method of the electronic device. Through the electronic device and the power supply control method provided by the invention, the power supply of the main control system can be turned on and turned off just by touching the power supply switch to reach the preset time so as to realize turn-on and turn-off, which is convenient for people to use.