Skip to content

Commit

Permalink
Added Z axis pen plotter hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderwalt committed Dec 12, 2024
1 parent 22373c5 commit a8c7a13
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@
<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="helloWorldPen()"><a href="#">Pen Plotter Hello World (RC Servo)</a></li>
<li onclick="helloWorldPenZ()"><a href="#">Pen Plotter Hello World (Z Axis)</a></li>
<li onclick="helloWorldDragKnife()"><a href="#">Dragknife Hello World</a></li>
</ul>
</div>
Expand Down
13 changes: 12 additions & 1 deletion js/basic-cad-helloworld.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,18 @@ function helloWorldPlasma() {
}

function helloWorldPen() {
$.get("./workspace/helloworldpen.obc?date=" + new Date().getTime(), function(data) {
$.get("./workspace/helloworldpen-servo.obc?date=" + new Date().getTime(), function(data) {
parseLoadWorkspace(data)
resetView();
fillTree();
setTimeout(function() {
makeGcode();
}, 500)
});
}

function helloWorldPenZ() {
$.get("./workspace/helloworldpen-z.obc?date=" + new Date().getTime(), function(data) {
parseLoadWorkspace(data)
resetView();
fillTree();
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions workspace/helloworldpen-z.obc

Large diffs are not rendered by default.

0 comments on commit a8c7a13

Please sign in to comment.