17 lines
260 B
C
17 lines
260 B
C
|
#pragma once
|
||
|
|
||
|
#include <Adafruit_FreeTouch.h>
|
||
|
#include "bounce2.h"
|
||
|
|
||
|
#define QT_THRESHOLD 450
|
||
|
|
||
|
class TouchBounce: public Bounce {
|
||
|
public:
|
||
|
// attach a touch pin
|
||
|
void attach(int pin);
|
||
|
|
||
|
protected:
|
||
|
bool readCurrentState();
|
||
|
Adafruit_FreeTouch qt;
|
||
|
};
|