11 years, 4 months 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

Bakr Younis
poster
11 years, 4 months 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.

Accepted Answer

I think there are no takers on this, so I'll mark it closed and keep my eye out for another answer

posted by Bakr Younis 26 Sep 2013
11 years, 4 months 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, 4 months 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

Have you published the library to use all other channels of Touch?

posted by John Miller 16 Sep 2016