This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335X触摸屏漂移不准

材料:电阻屏

接线:四线制,分别接在AIN0~AIN3,与友商接法一模一样。

现象:运行ts_test或者qt程序,如果画直线 明显感觉在“某块”地方直线会突然飘动再回到手上 造成画的线曲折,屏幕有多处类似的“块”,但是每次运行程序出问题的“块”位置都不同。

驱动:kernel相关代码配置:

/* TSc controller */
static struct tsc_data am335x_touchscreen_data = {
.wires = 4,
.x_plate_resistance = 200,
.steps_to_configure = 5,
};

static struct adc_data am335x_adc_data = {
.adc_channels = 4,
};


static struct mfd_tscadc_board tscadc = {
.tsc_init = &am335x_touchscreen_data,
.adc_init = &am335x_adc_data,
};

请问一下,造成这样问题的最大可能性是在硬件还是软件驱动?驱动其余还有什么地方要改吗?谢谢了