nornagon / saxi

Tools & library for driving the AxiDraw pen plotter
GNU Affero General Public License v3.0
472 stars 55 forks source link

ebb: Poll the button to pause/resume the plot #213

Open osresearch opened 3 weeks ago

osresearch commented 3 weeks ago

After sending every point to the plotter, query the status of the physical button and pause if the operator has pressed it. If so, busy poll for it to be released and pressed again to resume the plot.

Also report the EBB firmware version on startup.

osresearch commented 2 weeks ago

Maybe calling firmware version in the constructor is breaking the test due to the serial port mocking? I'll try moving it to the src/server.ts calls to new EBB instead.

osresearch commented 2 weeks ago

Guess that was it. I can squash these into one commit if you prefer.

alexrudd2 commented 1 week ago

Closes #179

@osresearch Mind opening this against https://github.com/alexrudd2/saxi?