I am using intel Galileo Gen 1 and SeeedStudio Grove touch sensor. I am trying to input data through touch sensor and convert it to morse's code.
For example if i touch sensor 5 times in 10 second then input is number 5 and i need to convert it to morse code. I am having hard time to get time duration. How do i calcuate time duration? Do i need to use SeeedStudio library for that? I did not see any library for Gorove touch sensor.
You can call the function when you do the first touch and store the data in a variable "timeA". Then when you do another touch you will store the new data in another variable "timeB" and the difference of timeB - timeA will be the duration between each touch.