https://github.com/tkomde/m5stackblemouse
Sample sketch that make M5Stack working as a BLE(HID Over GATT Profile) mouse
https://github.com/tkomde/m5stackblemouse
Last synced: 10 months ago
JSON representation
Sample sketch that make M5Stack working as a BLE(HID Over GATT Profile) mouse
- Host: GitHub
- URL: https://github.com/tkomde/m5stackblemouse
- Owner: tkomde
- License: mit
- Created: 2019-10-04T22:54:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T12:08:23.000Z (over 3 years ago)
- Last Synced: 2025-01-22T12:45:32.944Z (over 1 year ago)
- Language: C++
- Size: 604 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This sample sketch make M5Stack working as a BLE HOGP(HID Over GATT Profile) mouse.

- It works on ChromeOS/Windows/Android/iPadOS devices. I didn't tested in MacOS.
## Usage
1. After boot up, scan and connect from BLECentral.
1. M5stack Left button recognize multiple clicks.
- Single click: Change direction, up-down mode <-> right-left mode.
- Double click: Emulates mouse click(left button).
- Triple click: Emulates mouse click(right button).
1. M5stack Middle button moves cursol to up or left.
1. M5stack Right button moves cursol to down or right.
## Development requirements and notices
- Arduino IDE
- If you change HID report map structure, you need to unpair M5Stack and BLECentral.
## Acknowledgment
This program is much inspired by [M5StackHIDCtrlAltDel](https://github.com/mhama/M5StackHIDCtrlAltDel).
## License
MIT