My Project
Loading...
Searching...
No Matches
touchpad_driver.cpp File Reference

Class that handles reading touchpads. More...

#include "touchpad_driver.h"

Detailed Description

Class that handles reading touchpads.

This class defines a touchpads object, which can be used to interact with the MCU's capacitive touch functions.

Capacitive touch works by toggling a pin that to charge a capacitor - based on the number of toggles to bring the capacitor voltage to a logic high, we know the time constant. When we place our finger on the capacitive touch pad, we are changing the capacitance of this system, and a measurable change in the time constant occurs. With knowledge of the time constant of a touched and a non- touched system, we can deduce if the pad is being touched or not.