Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years ago.
how to add buttons to KL25Z TSI touch library
Hi,
I started playing with my KL25z and I am having a lot of fun with it so far, I have a project where I want to connect a couple of touch buttons to the FRDM board along with using the slider. I want to use the existing library and maybe modify it to accept more touch constructions (buttons, rotary, matrix ... ). I know this question is generic and high level but if there are any resources that can point me to a starting point that would be really appreciated.
3 Answers
11 years ago.
Thanks for providing some feedback but I guess I didnt explain my self and my question was too generic, I saw the slider to buttons code and thats good and all, but I want to be able to configure the other touch capable pins on the KLZ to expand the touch capability. The TSI library has enough built in functions to work the slider, but what if I want to expand to other pins on the board and use a slider with other electrodes ?
I will be waiting for Martin's library I guess and maybe it can solve my problems.
really appreciate the feedback.
11 years ago.
First I would simply try to get the other devices working, then later you can modify the code of the TSI library if you want to include them. Or another option, make seperate libraries for those other devices, and if you want you can make another library that combines all the other libraries.
In case you hadn't found it yet, here is some info about making libraries: http://mbed.org/cookbook/Writing-a-Library. In general I think the place to start is by just trying to get stuff working. Next step is considering what kind of library you want to make for it.
11 years ago.
Hello,
here's a guide how to make from KL25Z slider 4 buttons : http://mbed.org/users/virajjayaweera/code/CapacitiveTouchButton/
I can tell you there will one library which exactly will do what you need. I'll publish it once it will be ready to be published publicly (by the end of this month).
Regards, 0xc0170