From ecf9abdd0b0df3b48bbb96527e4e08006ee0284d Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 23 Apr 2015 20:57:36 +0200 Subject: Add known media, add track enhancement --- cutter.go | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'cutter.go') diff --git a/cutter.go b/cutter.go index 3b781df..dc3fb8e 100644 --- a/cutter.go +++ b/cutter.go @@ -33,13 +33,6 @@ type Point struct { Usable: 4000x5440 pt */ -type OnOff int - -const ( - On OnOff = iota - Off -) - var ( A4 = Point{5440, 4000} // Portrait Origin = Point{0, 0} @@ -99,6 +92,11 @@ func (c Cutter) Home() { c.WriteString("H") } +func (c Cutter) SetOrigin() { + defer c.EOT() + c.WriteString("FJ") +} + func (c Cutter) Draw(p Point) { defer c.EOT() fmt.Fprint(c, "D", p) @@ -217,3 +215,15 @@ func (c Cutter) Orientation(l Orientation) { defer c.EOT() fmt.Fprint(c, "FN", l) } + +type OnOff int + +const ( + On OnOff = iota + Off +) + +func (c Cutter) TrackEnhancing(state OnOff) { + c.EOT() + fmt.Fprint(c, "FY", state) +} -- cgit v1.2.3