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.
 
 

22 lines
369 B

#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];
class Keyboard {
public:
Keyboard();
void init();
bool getTouchDetected(uint8_t pad);
private:
};
#endif /* _KEYBOARD_H */