mirror of
https://github.com/0015/ThatProject.git
synced 2026-01-13 01:37:43 +03:00
ESP32 | LVGL8 | Ep 2. Shortcuts for Pull Stack Developer
This commit is contained in:
19
ESP32_LVGL/LVGL8/2_LILYPI_StackOverflow_BLE/BLECont.h
Normal file
19
ESP32_LVGL/LVGL8/2_LILYPI_StackOverflow_BLE/BLECont.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user