WrathPak
·
2025-05-28
touchbounce.h
1#pragma once
2
3#include <Adafruit_FreeTouch.h>
4#include "bounce2.h"
5
6#define QT_THRESHOLD 450
7
8class TouchBounce: public Bounce {
9public:
10 // attach a touch pin
11 void attach(int pin);
12
13protected:
14 bool readCurrentState();
15 Adafruit_FreeTouch qt;
16};