This library enables ESP32 development boards to function as Bluetooth HID devices, supporting features such as keyboard input, absolute mouse control, and two-way communication.
- QQ群: 710985269
- QQ: 3560000009
- WX: world_core
- 需要技术支持可以联系我,提供0基础HIDEsp32开发版制作视频课程并提供封装好的案例包含滑动、点击、home、back按键和android通信app的开发,无需学习也可以直接使用课程案例来实现android平台的免root、无障碍、adb的自动化测试脚本开发。
- HID课程介绍
- In the Arduino IDE go to "Sketch" -> "Include Library" -> "Add .ZIP Library..." and select the file you just downloaded.
- You can now go to "File" -> "Examples" -> "ESP32 BLE HID" and select any of the examples to get started.
#include <BleCombo.h>
BleComboKeyboard keyboard("cheese-ble-hid", "Espressif", 100);
BleComboMouse mouse(&keyboard);
class MyCallbacks: public BLECharacteristicCallbacks {
void onRead(BLECharacteristic* pCharacteristic) { }
void onWrite(BLECharacteristic *pCharacteristic) { }
};
void setup() {
Serial.begin(115200);
Serial.println("Starting work!");
MyCallbacks myCallbacks;
keyboard.setCallbacks(&myCallbacks);
keyboard.begin();
mouse.begin();
}
void loop() {
if(Keyboard.isConnected()) {
mouse.click();
}
delay(2000);
}
- 本库仅供学习使用,请勿用于非法用途,否则后果自负。
- 用户明确理解并同意,任何违反法律法规、侵犯他人合法权益的行为,均与本项目及其开发者无关,后果由用户自行承担。
This project is heavily based on their work: