In this recipe, we will learn how to adjust the sensitivity of the touchpad by changing the threshold value. This is used to decide whether a signal will be treated as a touch event not. This is an important setting to tweak and set to the correct value. If you don't, then a lot of your touch projects won't behave correctly.
Adjusting the touch threshold
Getting ready
You will need access to the REPL on the Circuit Playground Express to run the code presented in this recipe.
How to do it...
Let's perform the following steps:
- Run the following lines of code...