该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

ESP32 BLE HID Keyboard, Abs Mouse, and Two-Way Communication Library

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.

Contact Me

  • QQ群: 710985269
  • QQ: 3560000009

Installation

  • 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.

Example

#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);
}
  • 本库仅供学习使用,请勿用于非法用途,否则后果自负。
  • 用户明确理解并同意,任何违反法律法规、侵犯他人合法权益的行为,均与本项目及其开发者无关,后果由用户自行承担。

Credits

This project is heavily based on their work:

空文件

简介

蓝牙Hid库开源-无需无障碍 Root Adb等权限即可实现自动化测试。 Github仓库 :https://github.com/0cococ/ESP32-BLE-HID 支持的功能: Hid键盘 Hid绝对鼠标 蓝牙双向通信 如果对你有用可以给个原作者一个star 展开 收起
C/C++
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化