tutorial
This commit is contained in:
@@ -2,15 +2,20 @@
|
||||
|
||||
p5.js library for a Marlin polargraph (wall plotter) over Web Serial, plus a zigzag example.
|
||||
|
||||
**Anleitung** (Download, Linux/Windows/macOS, USB, Marlin/G-code): [tutorial.md](tutorial.md). Hardware: [hardware.md](hardware.md). G-code: [gcode.md](gcode.md).
|
||||
|
||||
```
|
||||
p5-wallplotter/
|
||||
├── tutorial.md # setup + plotter + G-code
|
||||
├── hardware.md # motors, board, geometry
|
||||
├── gcode.md # G-code used by this setup
|
||||
├── lib/
|
||||
│ ├── WallPlotter.js # library
|
||||
│ └── README.md # public API
|
||||
│ ├── README.md # short intro + example
|
||||
│ └── doc.md # full API
|
||||
└── examples/
|
||||
└── zickzack/ # example sketch
|
||||
├── index.html
|
||||
└── sketch.js
|
||||
├── zickzack/ # example sketch
|
||||
└── rechteck/ # rectangle sketch
|
||||
```
|
||||
|
||||
## Run the example
|
||||
@@ -51,14 +56,14 @@ function draw() {
|
||||
}
|
||||
|
||||
async function plot() {
|
||||
await drawArt(false);
|
||||
await drawPlot(false);
|
||||
}
|
||||
|
||||
async function test() {
|
||||
await drawArt(true);
|
||||
await drawPlot(true);
|
||||
}
|
||||
|
||||
async function drawArt(testOnly) {
|
||||
async function drawPlot(testOnly) {
|
||||
wp.startPath();
|
||||
wp.move(-200, -200);
|
||||
wp.draw(200, -200);
|
||||
@@ -66,6 +71,6 @@ async function drawArt(testOnly) {
|
||||
}
|
||||
```
|
||||
|
||||
Full API: [lib/README.md](lib/README.md).
|
||||
Full API: [lib/doc.md](lib/doc.md).
|
||||
|
||||
Baud **115200**. Pen servo: `M280 P0 S90` up, `M280 P0 S50` down. Coordinates in mm, origin at home (`G92`).
|
||||
|
||||
Reference in New Issue
Block a user