attiny85-mouse/README.md

42 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

# Luzifer / attiny85-mouse
Using [Barrier](https://github.com/debauchee/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](https://amzn.to/43g5WZk)
- [Platform.IO](https://platformio.org/) (in my case: [AUR/platformio](https://aur.archlinux.org/packages/platformio))
- [Micronucleus](https://github.com/micronucleus/micronucleus) (in my case: [AUR/micronucleus](https://aur.archlinux.org/packages/micronucleus))
## Build
```console
# 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!
```