esp32 soundboard project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
369 B

8 years ago
#ifndef _KEYBOARD_H
#define _KEYBOARD_H
#include "driver/touch_pad.h"
#define TOUCH_PAD_NUM 10
static bool s_pad_activated[TOUCH_PAD_NUM];
static bool touchDetected[TOUCH_PAD_NUM];
static uint16_t threshold[TOUCH_PAD_NUM];
8 years ago
8 years ago
class Keyboard {
public:
Keyboard();
void init();
bool getTouchDetected(uint8_t pad);
8 years ago
private:
};
#endif /* _KEYBOARD_H */