vail-adapter/touchbounce.h

17 lines
260 B
C
Raw Normal View History

2022-05-21 20:14:03 -06:00
#pragma once
#include <Adafruit_FreeTouch.h>
#include "bounce2.h"
2022-06-26 10:55:28 -06:00
#define QT_THRESHOLD 450
2022-05-21 20:14:03 -06:00
class TouchBounce: public Bounce {
public:
// attach a touch pin
void attach(int pin);
protected:
bool readCurrentState();
Adafruit_FreeTouch qt;
};