kuro-rs 0.0.4 → 0.0.5
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/History.txt +4 -0
- data/README.rdoc +12 -4
- data/examples/read.rb +4 -9
- data/lib/kuro-rs.rb +1 -1
- data/lib/kuro-rs/main.rb +10 -1
- metadata +3 -3
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -6,6 +6,10 @@
|
|
6
6
|
|
7
7
|
control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928) and PC-OP-RS1 (http://buffalo.jp/products/catalog/item/p/pc-op-rs1/)
|
8
8
|
|
9
|
+
== INSTALL:
|
10
|
+
|
11
|
+
* gem install kuro-rs
|
12
|
+
|
9
13
|
== SYNOPSIS:
|
10
14
|
|
11
15
|
require 'rubygems'
|
@@ -24,6 +28,14 @@ control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928) and PC-O
|
|
24
28
|
# close
|
25
29
|
kr.close
|
26
30
|
|
31
|
+
# block
|
32
|
+
KuroRs.open('/dev/tty.usbserial-0012a3b4'){|k|
|
33
|
+
k.verbose = true
|
34
|
+
puts k.read
|
35
|
+
## => hex dump (ffffffff0300f0e0018083...)
|
36
|
+
}
|
37
|
+
|
38
|
+
|
27
39
|
|
28
40
|
== TOOLS:
|
29
41
|
|
@@ -51,10 +63,6 @@ http interface
|
|
51
63
|
|
52
64
|
* KURO-RS or PC-OP-RS1
|
53
65
|
|
54
|
-
== INSTALL:
|
55
|
-
|
56
|
-
* gem install kuro-rs
|
57
|
-
|
58
66
|
== LICENSE:
|
59
67
|
|
60
68
|
(The MIT License)
|
data/examples/read.rb
CHANGED
@@ -11,12 +11,7 @@ end
|
|
11
11
|
|
12
12
|
device_name = ARGV.shift
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
exit 1
|
19
|
-
end
|
20
|
-
|
21
|
-
kr.verbose = true
|
22
|
-
puts kr.read ## => hex dump
|
14
|
+
KuroRs.open(device_name){|k|
|
15
|
+
k.verbose = true
|
16
|
+
puts k.read ## => hex dump
|
17
|
+
}
|
data/lib/kuro-rs.rb
CHANGED
data/lib/kuro-rs/main.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuro-rs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sho Hashimoto
|