A tool for managing knitting machine patterns
Dropbox for knitting machines
Knitty-gritty manages your knitting machine patterns. You place all your pattern images a folder, and this folder will be uploaded to the machine each time you tell the machine to import patterns. You can of course pre-populate the folder with patterns downloaded from the machine.
- Reads or writes BMP, PNG, and JPEG images.
- Compacts the memory used to avoid gaps (fragmentation!) in memory, allowing you to use (almost) 100% of your machine’s 32 kb memory.
What Doesn’t Work?
- Adding data to the memo display.
- Validating that the pattern fits within the machine’s working memory.
Only tested on OS X, but should work out of the box on both Windows and Linux given that you have the software requirements listed below installed. Please let me know if it does not - preferably with a pull request fixing the issue :-)
What You Will Need
- Brother KH940 knitting machine. KH930 might work but is untested.
- USB FTDI cable connected to the machine.
- A Python (2.7) installation.
- Preferably a Python virtual environment.
Knitty-gritty is distributed as a Python package. Install it via pip:
pip install knitty-gritty
If that completed successfully, you will now have a knitty-gritty executable, ready to do its thing!
Downloading Patterns from the Machine
# First, find your USB cable: ls /dev/tty.usbserial-* # Replace the file below with the name you found # The last parameter `patterns` is the folder where your patterns should be saved knitty-gritty emulate-folder /dev/tty.usbserial-A7XTW5YZ patterns
If this is the first time you run knitty-gritty, you should download all patterns from the machine first. On a KH940, this is done by entering CE, 552, STEP, 1, STEP. When this is done, the machine should beep (as it always does). Quit Knitty-gritty by pressing Control-C. The pattern images should appear in the folder you specified.
Now you can modify/add/remove patterns as much as you like. Just drop them in the folder together with the other patterns.
When you’re done with fiddling with the images, you should upload them:
# Replace the TTY-parameter with the cable you found above. knitty-gritty emulate-folder --no-save /dev/tty.usbserial-A7XTW5YZ patterns
The --no-save argument tells Knitty-gritty to not save any files to the folder on the computer. This is a safeguard against removing/overwriting patterns if anything goes wrong.
To load the patterns on the machine, enter CE, 551, STEP, 1, STEP and wait until it beeps.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size knitty_gritty-0.0.2-py2-none-any.whl (12.4 kB)||File type Wheel||Python version 2.7||Upload date||Hashes View|
|Filename, size knitty-gritty-0.0.2.tar.gz (11.2 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for knitty_gritty-0.0.2-py2-none-any.whl