Jump to content
43oh

capacitive touch in g2231


Recommended Posts

 

Hi, i was trying to use the capacitive library with the g2231 but i cant get it to work, did someone has tryed to do it? i found a blog in the internet where they cand do it with ccs so its possible to do it but someone knows if it can be done with energia?

It seems that you are trying to use both CapTouch and Serial (UART) at the same time. The 2231 only has one timer, TA0. Both the CapTouch library use TA0 hence you can not use them both at the same time.

Link to post
Share on other sites

You must alternate them, the cap touch LAB stresses that any signal (especially serial lines) should be kept quiet as much as possible during touch sampling. In other words: first sample your buttons and then write a byte over UART, maybe allow for receiving bytes for a small while, then go back to a quick sampling of the touch.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...