Skip to content

Instantly share code, notes, and snippets.

@mrcodetastic
mrcodetastic / WFH_Emulator.ino
Last active March 24, 2024 06:48
USB Mouse Jiggler (Work From Home (WFH) emulator)
/*
* Compile and flash this firmware onto a ESP32-S2 and then use a seperate micro USB connector
* to connect the S2's Pin 19 to USB D- and Pin 20 to USB D+ (and of course +5V to +5V and GND to GND)
*
* It will appear as a 'USB Mouse' in Windows/Linux/Mac, and move the mouse every 30 seconds or so
* that you are always online/green. The ESP's LED will flash briefly when this occurs.
*
* Even better, buy and ESP32-S2 Mini with USB-C and put it into DFU mode: https://www.youtube.com/watch?v=YPX2nlr-ySU
*
* If writing firmware to an ESP32-S2 Mini using Arduino IDE. Make sure you have 'USB CDC On Boot' set to 'False'