chiplotle-cli-wrapper 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/chiplotle-cli-wrapper.rb +5 -5
- metadata +1 -1
@@ -7,9 +7,9 @@ module ChiplotleCliWrapper
|
|
7
7
|
|
8
8
|
def initialize(log_file = './log/chiplotle.log')
|
9
9
|
|
10
|
-
#
|
10
|
+
# TODO: check for chiplotle installation
|
11
11
|
|
12
|
-
#
|
12
|
+
# TODO: don't have a log file like this..
|
13
13
|
|
14
14
|
@chiplotle = IO.popen("chiplotle > ./log/chiplotle.log 2>&1", "w")
|
15
15
|
@log = File.open(log_file, "w+")
|
@@ -24,7 +24,7 @@ module ChiplotleCliWrapper
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def close
|
27
|
-
#
|
27
|
+
# TODO: perform any reset actions...
|
28
28
|
|
29
29
|
@chiplotle.close
|
30
30
|
@log.close
|
@@ -62,7 +62,7 @@ module ChiplotleCliWrapper
|
|
62
62
|
pen(0)
|
63
63
|
end
|
64
64
|
|
65
|
-
def print_text(text, pen_no, height, width, x, y)
|
65
|
+
def print_text(text = "", pen_no = 1, height = 0.375, width = 0.285, x = 0, y = 0)
|
66
66
|
|
67
67
|
# pick up a pen
|
68
68
|
pen(pen_no)
|
@@ -90,7 +90,7 @@ module ChiplotleCliWrapper
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def write_file(file)
|
93
|
-
#
|
93
|
+
# TODO
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|