aboutsummaryrefslogtreecommitdiff
path: root/robo.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-15 13:49:12 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-15 13:49:12 +0200
commitf8a3589bb9842ccf11a015be6fb26e50529ca040 (patch)
tree47e383bfa5c2eb8725e3bd847668c0d1762c1704 /robo.go
parent45d4b0df550fe3e2d56e25bc84717c289a134259 (diff)
Prepare to switch
Diffstat (limited to 'robo.go')
-rw-r--r--robo.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/robo.go b/robo.go
index b7a39c6..976eacf 100644
--- a/robo.go
+++ b/robo.go
@@ -143,3 +143,20 @@ func (t Triple) send(c *bufio.Writer, cmd string) {
}
func (t Triple) Factor(c *bufio.Writer) { t.send(c, "&") }
+
+func Initialize(c *bufio.ReadWriter, mid int) {
+ Init(c.Writer)
+ if !Ready(c) {
+ fmt.Println("not ready")
+ }
+ GoHome(c.Writer)
+ fmt.Println(craftRobo, "Ver.", Version(c))
+
+ /*
+ pen := MediaID[mid]
+ pen.ID.Media(c.Writer)
+ pen.Speed.Speed(c.Writer)
+ pen.Force.Force(c.Writer)
+ pen.Overcut.Overcut(c.Writer)
+ */
+}