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.
 
 

24 lines
474 B

#ifndef _KEYBOARD_H
#define _KEYBOARD_H
#include "driver/touch_pad.h"
#include "hardware.h"
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);
void setCallback(uint8_t key_id, void(*new_function)());
static void (*callbacks[TOUCH_PAD_NUM])();
private:
};
#endif /* _KEYBOARD_H */