KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0)
Is there a way to use Keyboard libs from framework for TSI buttons, like sort long press, event management ?
Solved! Go to Solution.
Hi Lucian Firan
In Keyboard libs from framework there is not implementation for TSI, so you would have to add it. It is possible, since TSI SDK drivers can be added to your project, BUT TSI and GPIO drivers works very different and you would need to change drivers too much. In GPIO they configured pins to detect FallingEdge interrupt, so they can get any change in the switch button, but in TSI you should add a timer that will constantly measure your electrode, and this is not the best way to do detect this events. So it is possible but it's not recommendable due to all the change that you would need to do.
Hope this information helps you
Have a great day,
Jorge Alcala
Hi Lucian Firan
In Keyboard libs from framework there is not implementation for TSI, so you would have to add it. It is possible, since TSI SDK drivers can be added to your project, BUT TSI and GPIO drivers works very different and you would need to change drivers too much. In GPIO they configured pins to detect FallingEdge interrupt, so they can get any change in the switch button, but in TSI you should add a timer that will constantly measure your electrode, and this is not the best way to do detect this events. So it is possible but it's not recommendable due to all the change that you would need to do.
Hope this information helps you
Have a great day,
Jorge Alcala