feint
Joined: 24 May 2011 Posts: 2
|
CCS Touch library for matrix touch |
Posted: Tue May 24, 2011 9:32 am |
|
|
There is functions for single button touch in ccs library
But they don't work if you touch 2 sensor at a same time,
Is there any way to make this.
My code from the forum
Code: | #include <16f1933.h>
#fuses INTRC_IO,NOWDT
#use delay(clock=8000000)
#use touchpad(threshold=6,PIN_B1='0',PIN_B0='1')
#use rs232(baud=19200, xmit=PIN_C6, rcv=PIN_C7)
void main()
{
char c;
enable_interrupts(GLOBAL);
while(TRUE)
{
if(touchpad_hit())
{
c=touchpad_getc();
putc(c);
}
}
} |
Thanks . |
|