ESP32 bluetooth mouse bot
This bot emulates a Bluetooth mouse, allowing you to record macros and replay them multiple times.
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.