system
2
Hi,
maybe you can solve this with adding some delay to HW_AVR.inc
word UTouch::touch_ReadData()
{
word data = 0;
for(byte count=0; count<12; count++)
{
data <<= 1;
sbi(P_CLK, B_CLK);
cbi(P_CLK, B_CLK);
delayMicroseconds(1); //// added to get more stable readings?
if (rbi(P_DOUT, B_DOUT))
data++;
}
return(data);
}