Skip to content

Use the touch capabilities of Arduino MKR boards and Arduino Nano 33 IoT

Notifications You must be signed in to change notification settings

arduino-libraries/Arduino_MCHPTouch

Repository files navigation

MCHPTouch Library for Arduino

Check Arduino status Compile Examples status Spell Check status

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.

License

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.