Documentation ¶
Index ¶
- Constants
- Variables
- func BootUpgrade(c *bufio.ReadWriter) string
- func Calibrate(c *bufio.Writer)
- func DrawMarks(c *bufio.Writer, offset, size Point, length int)
- func DrawPic(c *bufio.Writer)
- func EasterEgg(c *bufio.Writer)
- func EnableDebug(c *bufio.Writer)
- func GoHome(c *bufio.Writer)
- func Home(c *bufio.Writer)
- func Init(c *bufio.Writer)
- func Initialize(c *bufio.ReadWriter, mid int, o Orientation)
- func Origin(c *bufio.Writer)
- func Print(c *bufio.Writer, in io.Reader, scale Unit)
- func Ready(c *bufio.ReadWriter) bool
- func Recv(c *bufio.Reader) string
- func Send(c *bufio.Writer, a interface{})
- func StatusWord(c *bufio.ReadWriter) string
- func TestCut(c *bufio.Writer)
- func TestLoop(c *bufio.Writer)
- func TestPattern(c *bufio.Writer)
- func UpdateFirmware(c *bufio.ReadWriter) bool
- func Version(c *bufio.ReadWriter) string
- type Device
- type Direction
- type Font
- type Glyph
- type LP
- type LineStyle
- type Media
- type Orientation
- type Page
- type Path
- func (ph Path) Bezier(c *bufio.Writer, a int)
- func (ph Path) Circle(c *bufio.Writer)
- func (ph Path) Circle3P(c *bufio.Writer)
- func (ph Path) CircleRelative(c *bufio.Writer)
- func (ph Path) Curve(c *bufio.Writer, a int)
- func (ph Path) CurveRelative(c *bufio.Writer, a int)
- func (ph Path) Draw(c *bufio.Writer)
- func (ph Path) DrawRelative(c *bufio.Writer)
- func (ph Path) Ellipse(c *bufio.Writer)
- func (ph Path) Line(c *bufio.Writer)
- func (ph Path) Scale(f Unit) (ret Path)
- type Point
- func (p Point) Calibration(c *bufio.Writer)
- func (p Point) CuttingArea(c *bufio.Writer)
- func (p Point) Draw(c *bufio.Writer)
- func (p Point) DrawRelative(c *bufio.Writer)
- func (p Point) LineStyle(c *bufio.Writer)
- func (p Point) LowerLeft(c *bufio.Writer)
- func (p Point) Move(c *bufio.Writer)
- func (p Point) MoveRelative(c *bufio.Writer)
- func (p Point) Offset(c *bufio.Writer)
- func (p Point) Scale(f Unit) Point
- func (p Point) SearchMarks(c *bufio.ReadWriter, auto bool) bool
- func (p Point) String() (s string)
- func (p Point) UpperRight(c *bufio.Writer)
- type Set
- type Triple
- type Unit
- func (u Unit) DistanceCorrection(c *bufio.Writer)
- func (u Unit) Force(c *bufio.Writer)
- func (u Unit) LineScale(c *bufio.Writer)
- func (u Unit) Media(c *bufio.Writer)
- func (u Unit) Origin(c *bufio.Writer)
- func (u Unit) Overcut(c *bufio.Writer)
- func (u Unit) RegMarkLen(c *bufio.Writer)
- func (u Unit) Speed(c *bufio.Writer)
- func (u Unit) String() string
- func (u Unit) TrackEnhancing(c *bufio.Writer)
- func (u Unit) UnknownFE(c *bufio.Writer)
- func (u Unit) UnknownFQ(c *bufio.ReadWriter) Unit
Constants ¶
View Source
const ( NUL = 0x00 ETX = 0x03 // End of Text ESC = 0x1B // Escape FS = 0x1C // File Separator )
Variables ¶
View Source
var A4 = Point{272 * MM, 200 * MM}
View Source
var MediaID = make(map[int]Media)
View Source
var Medias = []Media{ Media{ Descr: "Card without Craft Paper Backing", ID: 100, Speed: 10, Force: 27, Overcut: 18, }, Media{ Descr: "Card with Craft Paper Backing", ID: 101, Speed: 10, Force: 27, Overcut: 18, }, Media{ Descr: "Vinyl Sticker", ID: 102, Speed: 10, Force: 10, Overcut: 18, }, Media{ Descr: "Film Labels", ID: 106, Speed: 10, Force: 14, Overcut: 18, }, Media{ Descr: "Magnetic Sheet", ID: 107, Speed: 10, Force: 12, Overcut: 18, }, Media{ Descr: "Thick Media", ID: 111, Speed: 10, Force: 27, Overcut: 18, }, Media{ Descr: "Thin Media", ID: 112, Speed: 10, Force: 2, Overcut: 18, }, Media{ Descr: "Pen", ID: 113, Speed: 10, Force: 10, Overcut: 0, }, Media{ Descr: "Custom", ID: 300, Speed: 10, Force: 10, Overcut: 18, }, }
Functions ¶
func EnableDebug ¶
func Initialize ¶
func Initialize(c *bufio.ReadWriter, mid int, o Orientation)
func Ready ¶
func Ready(c *bufio.ReadWriter) bool
func StatusWord ¶
func StatusWord(c *bufio.ReadWriter) string
func TestPattern ¶
func UpdateFirmware ¶
func UpdateFirmware(c *bufio.ReadWriter) bool
func Version ¶
func Version(c *bufio.ReadWriter) string
Types ¶
type Device ¶
type Device interface { Close() Handle() *bufio.ReadWriter }
type LP ¶
func (LP) Handle ¶
func (d LP) Handle() *bufio.ReadWriter
func (LP) SetNonblock ¶
func (d LP) SetNonblock()
type Media ¶
type Orientation ¶
type Orientation int
const ( Portrait Orientation = iota Landscape )
func (Orientation) Orientation ¶
func (o Orientation) Orientation(c *bufio.Writer)
type Point ¶
type Point struct {
X, Y Unit
}
func Calibration ¶
func Calibration(c *bufio.ReadWriter) Point
func DistanceCorrection ¶
func DistanceCorrection(c *bufio.ReadWriter) Point
func LowerLeft ¶
func LowerLeft(c *bufio.ReadWriter) Point
func Offset ¶
func Offset(c *bufio.ReadWriter) Point
func UpperRight ¶
func UpperRight(c *bufio.ReadWriter) Point
func (Point) Calibration ¶
func (Point) CuttingArea ¶
func (Point) DrawRelative ¶
func (Point) MoveRelative ¶
func (Point) SearchMarks ¶
func (p Point) SearchMarks(c *bufio.ReadWriter, auto bool) bool
func (Point) UpperRight ¶
type Triple ¶
type Triple struct {
U, V, W Unit
}
func CallGin ¶
func CallGin(c *bufio.ReadWriter) Triple
func Gin ¶
func Gin(c *bufio.ReadWriter) Triple
type Unit ¶
type Unit float64
func (Unit) DistanceCorrection ¶
func (Unit) RegMarkLen ¶
func (Unit) TrackEnhancing ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.