evive has 12 touch inputs, which are interfaced via the MPR121 chip using SPI interface. The touch library is easy-to-use, and you can just plug wire from the outputs to any conducting surface, and get a touch-sensitive surface!
Programming in Arduino IDE
To use touch inputs in Arduino IDE, you have to evive Library.
This code detects if someone has touched banana attached to channel 1 of Touch inputs and display the state on TFT Screen.
Programming in PictoBlox (Scratch)
To get the state of touch pins in Scratch, you have to use channel () touched block. Channel () touched block can be found under the Robots palette in the extension evive Inbuilt tools. If the specified channel is touched, the block returns “True”, else it returns false.
- Playing Piano on the evive buzzer