If you use a larger-sized touch screen, you may notice that the touch position is less accurate due to the higher resistance of larger resistive touch screens. To address this issue, it's necessary to reduce the ADC clock speed, allowing the ADC voltage sufficient time to charge.
Change the ADC0 clock rate in the device tree source (DTS) file you are working with. The default value is set at 20,000 Hz.
ma35d1-som-256.dts
Code: Select all
&adc0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_adc0>;
clock-rate = <100000>;
};
#MA35 #Resistive Touch #Touch