Let the computer think there still is a mouse attached
|
||
---|---|---|
src | ||
.gitignore | ||
platformio.ini | ||
README.md |
Luzifer / attiny85-mouse
Using Barrier and every time you disconnect the mouse from the gaming PC all the games start freaking out and drawing mouse cursors? Just let them think there still is a mouse attached by emulating a mouse doing exactly nothing!
Requirements
- AZDelivery Digispark Rev.3 Kickstarter
- Platform.IO (in my case: AUR/platformio)
- Micronucleus (in my case: AUR/micronucleus)
Build
# platformio run -t upload
Processing attiny85 (platform: atmelavr; board: digispark-tiny; framework: arduino)
[...]
Linking .pio/build/attiny85/firmware.elf
Checking size .pio/build/attiny85/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [== ] 18.0% (used 92 bytes from 512 bytes)
Flash: [==== ] 44.2% (used 2656 bytes from 6012 bytes)
Building .pio/build/attiny85/firmware.hex
Configuring upload protocol...
AVAILABLE: custom
CURRENT: upload_protocol = custom
Uploading .pio/build/attiny85/firmware.hex
> Please plug in the device (will time out in 60 seconds) ...
> Device is found!
connecting: 40% complete
> Device has firmware version 1.6
> Available space for user applications: 6012 bytes
> Suggested sleep time between sending pages: 8ms
> Whole page count: 94 page size: 64
> Erase function sleep duration: 752ms
parsing: 60% complete
> Erasing the memory ...
erasing: 80% complete
> Starting to upload ...
writing: 100% complete
>> Micronucleus done. Thank you!