CPC G06F 3/04184 (2019.05) [G06F 3/03545 (2013.01); G06F 3/0383 (2013.01); G06F 3/04162 (2019.05); G06F 3/0441 (2019.05); G06F 3/0442 (2019.05); G06F 2203/0384 (2013.01); G06F 2203/04101 (2013.01); G06F 2203/04102 (2013.01)] | 8 Claims |
1. A display driving method, wherein the display driving method is applied to a display device, the display device comprises a display panel, and the display driving method comprises:
detecting noise from the display panel to obtain an in-panel noise value;
sending target uplink information to an active stylus pen based on the in-panel noise value, and receiving target downlink information returned by the active stylus pen under a target pen voltage based on the target uplink information, wherein the target downlink information comprises position information;
determining, based on coordinate information of position coordinates of the position information, a coordinate distance value between the position coordinates; and
reporting, based on the coordinate distance value, contact information generated by the active stylus pen on the display panel at a target report rate;
wherein the determining, based on coordinate information of position coordinates of the position information, a coordinate distance value between the position coordinates comprises:
determining whether the number of the position information of the target downlink information in a current display time frame is greater than 1;
in response to the number of the position information of the target downlink information in the current display time frame is greater than 1, determining, based on coordinate information of at least two position information of the position information in the target downlink information in the current display time frame, the coordinate distance value between the at least two position coordinates; and
in response to the number of the position information of the target downlink information in the current display time frame is equal to 1, determining, based on coordinate information of the position information of the target downlink information in the current display time frame and coordinate information of the position information in the target downlink information in a previous display time frame, the coordinate distance value between the two position coordinates, or determining, based on coordinate information of the position information of the target downlink information in the current display time frame and coordinate information of the position information of target downlink information in a next display time frame, the coordinate distance value between the two position coordinates;
wherein the target report rate comprises a first report rate and a second report rate; and the first report rate is greater than the second report rate;
the reporting, based on the coordinate distance value, contact information generated by the active stylus pen on the display panel at a target report rate comprises:
comparing the coordinate distance value with a preset distance threshold value;
in response to the coordinate distance value being greater than the preset distance threshold value, reporting the contact information generated by the active stylus pen on the display panel at the first report rate; and
in response to the coordinate distance value being smaller than the preset distance threshold value, reporting the contact information generated by the active stylus pen on the display panel at the second report rate.
|