mirror of
https://github.com/0015/ThatProject.git
synced 2026-01-12 09:17:42 +03:00
ESP32 | LVGL7 = My Shortcuts for Windows 10 = (ft. BLE HID Keyboard)
This commit is contained in:
28
ESP32_LVGL/MyShortcuts_LVGL7/BLECont.h
Normal file
28
ESP32_LVGL/MyShortcuts_LVGL7/BLECont.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/*
|
||||
ESP32 | LVGL7 = My Shortcuts for Windows 10 = (ft. BLE HID Keyboard)
|
||||
Video Tutorial: https://youtu.be/EWKAyQBdcYM
|
||||
Created by Eric N. (ThatProject)
|
||||
*/
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
class BleKeyboard;
|
||||
|
||||
class BLECont
|
||||
{
|
||||
private:
|
||||
void(*callback)(bool);
|
||||
BleKeyboard* bleKeyboard;
|
||||
unsigned long previousTimestamp;
|
||||
friend void sendTask(void* pvParameters);
|
||||
|
||||
public:
|
||||
BLECont();
|
||||
bool isConnected;
|
||||
void begin();
|
||||
void loop();
|
||||
void triggerTask(int caseNum);
|
||||
void bindCallback(void(*fn)(bool)) {callback = fn;}
|
||||
};
|
||||
Reference in New Issue
Block a user