mirror of
https://github.com/0015/ThatProject.git
synced 2026-01-12 09:17:42 +03:00
19 lines
361 B
C++
19 lines
361 B
C++
#pragma once
|
|
class BleKeyboard;
|
|
class BLECont {
|
|
private:
|
|
bool isConnected;
|
|
void (*callback)(bool);
|
|
BleKeyboard *bleKeyboard;
|
|
unsigned long previousTimestamp;
|
|
friend void sendTask(void *pvParameters);
|
|
|
|
public:
|
|
BLECont();
|
|
void begin();
|
|
void loop();
|
|
void triggerTask(int caseNum);
|
|
void bindCallback(void (*fn)(bool)) {
|
|
callback = fn;
|
|
}
|
|
}; |