CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCS Touch library for matrix touch

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
feint



Joined: 24 May 2011
Posts: 2

View user's profile Send private message

CCS Touch library for matrix touch
PostPosted: Tue May 24, 2011 9:32 am     Reply with quote

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 .
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group