aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-15 19:44:53 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-15 19:44:53 +0200
commitafd8bc4179772bd683b09c9bb27fbe9583c4849a (patch)
tree339a46489f75f98f75c79be1781f5558f42691ec
parentbc49062cdd593fca1a40116b31d41823c11a8a32 (diff)
Make it package
-rw-r--r--cutter.go2
-rw-r--r--device.go2
-rw-r--r--drawtext/main.go16
-rw-r--r--easteregg.go2
-rw-r--r--font.go2
-rw-r--r--lp.go2
-rw-r--r--main.go14
-rw-r--r--marks.go2
-rw-r--r--media.go2
-rw-r--r--misc.go2
-rw-r--r--pic.go2
-rw-r--r--robo.go2
-rw-r--r--testpattern.go2
-rw-r--r--units.go2
-rw-r--r--usb.go2
15 files changed, 29 insertions, 27 deletions
diff --git a/cutter.go b/cutter.go
index 294c990..f35f400 100644
--- a/cutter.go
+++ b/cutter.go
@@ -1,4 +1,4 @@
-package main
+package robo
import (
"bufio"
diff --git a/device.go b/device.go
index ead9079..cb643f2 100644
--- a/device.go
+++ b/device.go
@@ -1,4 +1,4 @@
-package main
+package robo
import (
"bufio"
diff --git a/drawtext/main.go b/drawtext/main.go
new file mode 100644
index 0000000..21efbea
--- /dev/null
+++ b/drawtext/main.go
@@ -0,0 +1,16 @@
+package main
+
+import "dim13.org/robo"
+
+func main() {
+ dev := robo.NewDevice()
+ defer dev.Close()
+
+ handle := dev.Handle()
+ defer robo.Home(handle.Writer)
+
+ robo.Initialize(handle, 113, robo.Portrait)
+ robo.A4.UpperRight(handle.Writer)
+ robo.PrintStdin(handle.Writer)
+ //robo.DrawPic(handle.Writer)
+}
diff --git a/easteregg.go b/easteregg.go
index eb7a2d2..f7f5adf 100644
--- a/easteregg.go
+++ b/easteregg.go
@@ -1,4 +1,4 @@
-package main
+package robo
// found in firmware V2.30
var easteregg = []string{
diff --git a/font.go b/font.go
index 113ce52..3774899 100644
--- a/font.go
+++ b/font.go
@@ -1,4 +1,4 @@
-package main
+package robo
import (
"bufio"
diff --git a/lp.go b/lp.go
index e4ab27c..41209b4 100644
--- a/lp.go
+++ b/lp.go
@@ -1,4 +1,4 @@
-package main
+package robo
import (
"bufio"
diff --git a/main.go b/main.go
deleted file mode 100644
index cd53f85..0000000
--- a/main.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package main
-
-func main() {
- dev := NewDevice()
- defer dev.Close()
-
- handle := dev.Handle()
- defer Home(handle.Writer)
-
- Initialize(handle, 113, Portrait)
- A4.UpperRight(handle.Writer)
- PrintStdin(handle.Writer)
- //DrawPic(handle.Writer)
-}
diff --git a/marks.go b/marks.go
index 2bbd2f1..385cda6 100644
--- a/marks.go
+++ b/marks.go
@@ -1,4 +1,4 @@
-package main
+package robo
import "bufio"
diff --git a/media.go b/media.go
index a822bde..e55f75a 100644
--- a/media.go
+++ b/media.go
@@ -1,4 +1,4 @@
-package main
+package robo
import (
"bufio"
diff --git a/misc.go b/misc.go
index e0cb624..98703a5 100644
--- a/misc.go
+++ b/misc.go
@@ -1,4 +1,4 @@
-package main
+package robo
/*
import "log"
diff --git a/pic.go b/pic.go
index 505b16b..07d960f 100644
--- a/pic.go
+++ b/pic.go
@@ -1,4 +1,4 @@
-package main
+package robo
import (
"bufio"
diff --git a/robo.go b/robo.go
index 8b2c63b..0e4e758 100644
--- a/robo.go
+++ b/robo.go
@@ -1,4 +1,4 @@
-package main
+package robo
import (
"bufio"
diff --git a/testpattern.go b/testpattern.go
index e761fd5..58b4467 100644
--- a/testpattern.go
+++ b/testpattern.go
@@ -1,4 +1,4 @@
-package main
+package robo
func (c Cutter) TestPattern() {
c.Factor(Triple{100, 100, 100})
diff --git a/units.go b/units.go
index b82e34b..3f655a6 100644
--- a/units.go
+++ b/units.go
@@ -1,4 +1,4 @@
-package main
+package robo
import "fmt"
diff --git a/usb.go b/usb.go
index 7aa75c2..96612b6 100644
--- a/usb.go
+++ b/usb.go
@@ -1,4 +1,4 @@
-package main
+package robo
import (
"bufio"