ESP32 bluetooth mouse bot
This project showcases a bot that emulates a Bluetooth mouse using an ESP32 controller.
It allows users to record and replay macros, automating repetitive tasks and enhancing user interaction through customizable input sequences.
You can find the source code for this bot here.
States
The bot operates in several states:
- Init
- Not connected to a device
- Connected to a device
- Record state
- Playing state
Example logs showing state transitions:
-> Controller enabled
-> State: connected
-> State: record
-> Commands: left:48 down:87 right:4 wait:2 up:2 wait:5 click:1 scroll-down:1 wait:9 click:1
-> Commands saved to persistent memory
-> State: play
-> Commands loaded from persistent memory
-> Commands: left:48 down:87 right:4 wait:2 up:2 wait:5 click:1 scroll-down:1 wait:9 click:1
Keyboard
The keyboard layout varies depending on the bot's current state.
Connected to device
: You can start playing saved macros or begin recording a new one.
Recording state
: You can move the mouse and use a button to stop recording.