摘要:
The present disclosure provides a method for testing a USB cable applied in an electronic device. The electronic device includes a battery charged by a charger via the USB cable. The method can include determining at least two different values of charging currents. The method can further include generating a first control signal according to the determined values of charging currents. Sending the first control signal to the charger via the USB cable, to inform the charger to respectively charge the battery by charging currents with the determined values. Detecting values of at least two voltages output to the battery. Comparing a calculated variation degree between the detected values of voltages with a preset variation degree. Generating a first type of message according to a compared result between the calculated variation degree and the preset variation degree.
摘要:
An audio control method of an audio player, the audio player includes an audio playing unit having a first channel and a second channel, and an audio control system executed by a processor of the audio player. The audio control system includes an audio playing module, a detection module and a channel adjustment module. The audio playing module plays an audio file and outputs audio signals of the audio file through the audio playing unit, the audio signals have a first channel signals and a second channel signals. The detection module detects whether the first channel signals and the second channel signals are normally played. The channel adjustment module combines one of the first and second channel signals to another of the first and second channel signals, to form combination signals, and plays the combination signals through the first or the second channel.
摘要:
An electronic device comprises a touch screen, a distance determining module, a touch determining module, and a warning control module. The distance determining module determines whether a distance between the touch screen and an object in front of the touch screen is less than or equal to a distance limit. The touch determining module determines whether a touch action is applied to the touch screen within a first predetermined time when the distance between the touch screen and the object is less than or equal to the distance limit. The warning control module controls the electronic device to send a warning to a user when no touch action is applied to the touch screen within the first predetermined time.
摘要:
A game control system and method compute a finger contact area of at least one finger of a user when the user touches a touch-input unit to play a game. An age range of the user corresponding to the obtained finger contact area is determined according to the obtained finger contact area and a relationship between finger contact areas and age ranges of the users. A difficulty setting of the game is adjusted according to the determined age range of the user and a relationship between age ranges and difficulty settings of the game. An electronic device is also provided.