axi_manual: Manually control the AxiDraw

View source: R/manual.R

axi_manualR Documentation

Manually control the AxiDraw

Description

This function sets up a connection to the AxiDraw and returns an object with methods for directly controlling the movement of the pen plotter.

Usage

axi_manual(units = "cm", options = axi_options())

Arguments

units

The units that movement is given in. Either 'cm' or 'in'.

options

An axi_options object. See the documentation for axi_options() for all the settings.

Value

An object with the methods given in the Instructions section.

Instructions

The following methods are available to the returned object:

  • connect(): Start a connection to the plotter.

  • disconnect(): End a connection to the plotter.

  • update_options(): Change the options of the plotter.

  • go_to(): Move the plotter head to the absolute (x, y) position.

  • move_to(): Move the plotter head to the absolute (x, y) position, raising the head if not already up.

  • line_to(): Move the plotter head to the absolute (x, y) position, lowering the head if not already down.

  • go_rel(): Move the plotter head with the relative (x, y) amount.

  • move_rel(): Move the plotter head with the relative (x, y) amount, raising the head if not already up.

  • line_rel(): Move the plotter head with the relative (x, y) amount, lowering the head if not already down.

  • pen_up(): Raise the pen head.

  • pen_down(): Lower the pen head.

Note

Before and after use it is necessary to call the connect()/disconnect() methods to signal the start and end of a sequence of instructions.


thomasp85/fawkes documentation built on Jan. 27, 2024, 8:41 a.m.