This library allows you to read touch sensors values from the Arduino MKR boards and the Arduino Nano 33 IoT. Touch sensing is a hardware capability of the SAMD21 processor.
#include "Arduino_MCHPTouch.h"
void setup() {
TOUCH.begin();
}
void loop() {
TOUCH.poll();
if (TOUCH.available()) {
int value = TOUCH.read(0); // read sensor 0
}
}
See the bundled examples for usage and visit the Microchip Developer website to learn more about touch sensing.
This library is a wrapper around the MCHPTouch library by Microchip, which is bundled in binary form in this distribution in agreement with Microchip.
Microchip Technology Inc., provides the Microchip Touch Library software subject to the license terms contained at the link below. By using the Microchip Touch Library, you acknowledge and agree to the terms of the license contained at the link below. Microchip Touch Library License Agreement
The Arduino_MCHPTouch wrapper library is distributed under the terms of the MPL-2.0 license.