aboutsummaryrefslogtreecommitdiff
path: root/cmd/testpattern/main.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-09-18 19:17:50 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-09-18 19:17:50 +0200
commit3ff749c98c4593ff35b2f82de222db9f97954f29 (patch)
treebcf452f4c58f9e65e3c1d4b8cb0034b798c1a2b7 /cmd/testpattern/main.go
parentdab8960e11bcbd102469881f3e1f9a75abadb896 (diff)
Move to cmd
Diffstat (limited to 'cmd/testpattern/main.go')
-rw-r--r--cmd/testpattern/main.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/cmd/testpattern/main.go b/cmd/testpattern/main.go
new file mode 100644
index 0000000..26e5a24
--- /dev/null
+++ b/cmd/testpattern/main.go
@@ -0,0 +1,15 @@
+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.TestPattern(handle.Writer)
+}