User Tools

Site Tools


tutorials:knittingmachine:insertpatt.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorials:knittingmachine:insertpatt.html [2010/11/01 22:19]
ladyada
tutorials:knittingmachine:insertpatt.html [2010/11/01 22:26]
ladyada
Line 63: Line 63:
 Now you'll run **insertpattern.py** by typing in **python insertpattern.py img/​file-01.dat PATTERNNUM BMPFILE myfile.dat** which will insert the **BMPFILE** You made in part 1 into the pattern # location **PATTERNNUM** and when done, save the new data file to **myfile.dat** (so you dont overwrite the old file) Now you'll run **insertpattern.py** by typing in **python insertpattern.py img/​file-01.dat PATTERNNUM BMPFILE myfile.dat** which will insert the **BMPFILE** You made in part 1 into the pattern # location **PATTERNNUM** and when done, save the new data file to **myfile.dat** (so you dont overwrite the old file)
  
-{{:​tutorials:​knittingmachine:​insertingqr.gif|}}+{{  :​tutorials:​knittingmachine:​insertingqr.gif ​ |}}
  
 If the pattern size doesn'​t match the image size it wont continue If the pattern size doesn'​t match the image size it wont continue
Line 69: Line 69:
 {{  :​tutorials:​knittingmachine:​wrongsize.gif ​ |}} {{  :​tutorials:​knittingmachine:​wrongsize.gif ​ |}}
  
-====== ​Reloading ​the machine ​======+====== ​Split the file ======
  
-{{:​tutorials:​knittingmachine:​screen_shot_2010-10-26_at_9.56.07_pm.png|}}+Now that we have the **myfile.dat**, we'll need to split the file into tracksThis lets the emulator load the files back like it was a disketteWe've included a simple program to do this, its called **splitfile2trakc.py** and you can run it by typing in **splitfile2track.py myfile.dat** it will create two files, **track0.dat** and **track1.dat**
  
-{{:​tutorials:​knittingmachine:​screen_shot_2010-10-26_at_9.55.27_pm.png|}}+{{  :​tutorials:​knittingmachine:​screen_shot_2010-10-26_at_9.55.27_pm.png ​ |}} 
 + 
 +Rename the files 00.dat and 01.dat respectively 
 + 
 +{{  :​tutorials:​knittingmachine:​screen_shot_2010-10-26_at_9.55.40_pm.png ​ |}} 
 + 
 +And drag them into your **img** folder 
 + 
 +{{  :​tutorials:​knittingmachine:​screen_shot_2010-10-26_at_9.56.07_pm.png ​ |}} 
 + 
 +Lastly, we'll reupload the files to the knitting machine, see the next tutorial! 
 + 
 +====== Reloading the machine ======
  
-{{:​tutorials:​knittingmachine:​screen_shot_2010-10-26_at_9.55.40_pm.png|}} 
  
  
/home/ladyada/public_html/wiki/data/pages/tutorials/knittingmachine/insertpatt.html.txt · Last modified: 2016/01/28 18:05 (external edit)