init: initial commit
Some checks failed
CI Checks / Building (macOS-latest, stable) (push) Has been cancelled
CI Checks / Building (true, macOS-latest, nightly) (push) Has been cancelled
CI Checks / Building (true, ubuntu-latest, nightly) (push) Has been cancelled
CI Checks / Building (true, windows-latest, nightly) (push) Has been cancelled
CI Checks / Building (ubuntu-latest, stable) (push) Has been cancelled
CI Checks / Building (windows-latest, stable) (push) Has been cancelled
CI Checks / Linting (push) Has been cancelled
CI Checks / Formatting (push) Has been cancelled

This commit is contained in:
may
2025-12-18 17:40:03 +10:00
commit ecf1730b93
25 changed files with 2676 additions and 0 deletions

13
IMPLEMENTATION.md Normal file
View File

@@ -0,0 +1,13 @@
# Implementation
## Serial Packets
If you would like to control muse2040 without buttplug.io, you can open a serial connection over USB (Typically `COM3` on Windows and `/dev/ttyACM0` on Linux) and control it directly.
Since the program takes a long time to control channels (the connection with the toy is 50Hz), the serial connection only allows one channel to change at a time to increase speed.
Currently, serialising channel and intensity information for muse2040 is done through the following operation:
```python
packet = (channel << 2) + intensity # assuming channel is limited to 0-2 and intensity is limited to 0-3
```