This is a driver for the Dream Cheeky USB Missile Launcher. I just really want to shoot my boss when I open a pull request. If he becomes too quick I'm giving this puppy vision.
- OS supporting
hidapi
- Python 3
- PIP
- Dream Cheeky USB Missile Launcher
Install the requirements via pip
.
pip install -r requirements.txt
This would only be to show off what the launcher can do. This is the core driver that has a main function to demo.
python launcher.py
sudo python server.py --port 31337
Each token of a command line is formatted as follows <command> [,<sleep in nanoseconds/number of missiles>]
. The number is optional for FIRE
and RESET
FIRE [,<number of missiles]
UP
,DOWN
,LEFT
,RIGHT
RESET
- Reset hardware state (stop whatever command is running)
python client.py --port 31337 CMD[,<sleep in nanoseconds/number of missiles>]
- Plug in launcher and ensure the computer sees it.
- Start your server
python server.py --port 31337
. - Send a command stream to the launcher via client
python client.py --port 31337 UP,2000 LEFT,1000 FIRE,3
. - Assert geek dominance and profit.