Skip to content

Commit

Permalink
Added Pen Plotter Hello World
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderwalt committed Dec 2, 2024
1 parent f71198a commit 04dcb46
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
<li onclick="helloWorld()"><a href="#">CNC Hello World</a></li>
<li onclick="helloWorldLaser()"><a href="#">Laser Hello World</a></li>
<li onclick="helloWorldPlasma()"><a href="#">Plasma Hello World</a></li>
<li onclick="helloWorldPen()"><a href="#">Pen Plotter Hello World</a></li>
<li onclick="helloWorldDragKnife()"><a href="#">Dragknife Hello World</a></li>
</ul>
</div>
Expand Down
23 changes: 20 additions & 3 deletions js/basic-cad-helloworld.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function helloWorldLaser() {
parseLoadWorkspace(data)
resetView();
fillTree();
setTimeout(function() {makeGcode();}, 500)
setTimeout(function() {
makeGcode();
}, 500)

});
}
Expand All @@ -24,7 +26,9 @@ function helloWorldDragKnife() {
parseLoadWorkspace(data)
resetView();
fillTree();
setTimeout(function() {makeGcode();}, 500)
setTimeout(function() {
makeGcode();
}, 500)
});
}

Expand All @@ -33,6 +37,19 @@ function helloWorldPlasma() {
parseLoadWorkspace(data)
resetView();
fillTree();
setTimeout(function() {makeGcode();}, 500)
setTimeout(function() {
makeGcode();
}, 500)
});
}

function helloWorldPen() {
$.get("./workspace/helloworldpen.obc?date=" + new Date().getTime(), function(data) {
parseLoadWorkspace(data)
resetView();
fillTree();
setTimeout(function() {
makeGcode();
}, 500)
});
}
1 change: 1 addition & 0 deletions workspace/helloworldpen.obc

Large diffs are not rendered by default.

0 comments on commit 04dcb46

Please sign in to comment.