Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
node_modules
etc/bedclear
etc/uuid
tmp
/node_modules
/etc/bedclear
/etc/uuid
/tmp
/uploads
/node
/package-lock.json
/node-v*
6 changes: 4 additions & 2 deletions src/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,19 @@
<button onclick="origin_set()">Set Origin</button>
<button id="clear-origin" onclick="origin_clear()">Clear Origin</button>
<button onclick="origin_go()">Goto Origin</button>
<button onclick="baby_z_down()">Babystep Down</button>
</div>
<div class="col">
<button onclick="send_safe('M17')">Enable motors</button>
<button onclick="send_safe('M18')">Disable motors</button>
<button id="up-z-probe" onclick="update_probe_z()">Update Probe Z</button>
<!--<button id="go-center" onclick="center_go()">Goto Center</button>-->
<button onclick="baby_z_up()">Babystep Up</button>
</div>
<div class="col" id="abl">
<button onclick="probe_bed()">Auto Bed Level</button>
<button onclick="send_safe('M420 S1;M420')">Enable</button>
<button onclick="send_safe('M420 S0;M420')">Disable</button>
<button onclick="send_safe('M420 S1;M420')">UBL Enable</button>
<button onclick="send_safe('M420 S0;M420')">UBL Disable</button>
</div>
<div class="grow"></div>
</div>
Expand Down
8 changes: 8 additions & 0 deletions src/web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ function origin_go() {
}
}

function baby_z_down() {
send(`M290 Z-0.025; M503; *status`);
}

function baby_z_up() {
send(`M290 Z0.025; M503; *status`);
}

function origin_set() {
if (alert_on_run()) return;
if (mode === 'fdm' && last_set && last_set.pos) {
Expand Down