kuro-rs 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.rdoc +22 -19
- data/bin/kuro-rs +2 -0
- data/lib/kuro-rs.rb +1 -1
- metadata +7 -9
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
|
-
control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928)
|
7
|
+
control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928), PC-OP-RS1 (http://buffalo.jp/products/catalog/item/p/pc-op-rs1/) and Arduino IR-Remote (http://www.256byte.com/2010/01/arduino-irremote/)
|
8
|
+
|
8
9
|
|
9
10
|
== INSTALL:
|
10
11
|
|
@@ -12,30 +13,32 @@ control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928) and PC-O
|
|
12
13
|
|
13
14
|
== SYNOPSIS:
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
# open KURO-RS
|
19
|
-
kr = KuroRs.open('/dev/tty.usbserial-0012a3b4')
|
16
|
+
require 'rubygems'
|
17
|
+
require 'kuro-rs'
|
20
18
|
|
21
|
-
|
22
|
-
|
23
|
-
## => hex dump (ffffffff0300f0e0018083...)
|
19
|
+
# open KURO-RS
|
20
|
+
kr = KuroRs.open('/dev/tty.usbserial-0012a3b4')
|
24
21
|
|
25
|
-
|
26
|
-
|
22
|
+
# read
|
23
|
+
puts kr.read
|
24
|
+
## => hex dump (ffffffff0300f0e0018083...)
|
27
25
|
|
28
|
-
|
29
|
-
|
26
|
+
# write
|
27
|
+
kr.write 'ffffffff0300f0e0018083'
|
30
28
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
29
|
+
# close
|
30
|
+
kr.close
|
31
|
+
|
32
|
+
# use block
|
33
|
+
KuroRs.open('/dev/tty.usbserial-0012a3b4'){|k|
|
34
|
+
# sleep 2 ## for Arduino IR-Remote
|
35
|
+
k.verbose = true
|
36
|
+
puts k.read
|
37
|
+
## => hex dump (ffffffff0300f0e0018083...)
|
38
|
+
}
|
37
39
|
|
38
40
|
|
41
|
+
* for Arduino IR-Remote, It needs 2 sec sleep after "KuroRs.open"
|
39
42
|
|
40
43
|
== TOOLS:
|
41
44
|
|
data/bin/kuro-rs
CHANGED
data/lib/kuro-rs.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: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sho Hashimoto
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-12-02 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: serialport
|
@@ -91,7 +90,7 @@ dependencies:
|
|
91
90
|
version: "2.12"
|
92
91
|
type: :development
|
93
92
|
version_requirements: *id005
|
94
|
-
description: control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928)
|
93
|
+
description: control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928), PC-OP-RS1 (http://buffalo.jp/products/catalog/item/p/pc-op-rs1/) and Arduino IR-Remote (http://www.256byte.com/2010/01/arduino-irremote/)
|
95
94
|
email:
|
96
95
|
- hashimoto@shokai.org
|
97
96
|
executables:
|
@@ -121,7 +120,6 @@ files:
|
|
121
120
|
- bin/kuro-rs
|
122
121
|
- bin/kuro-rs-server
|
123
122
|
- .gemtest
|
124
|
-
has_rdoc: true
|
125
123
|
homepage: http://github.com/shokai/ruby-kuro-rs
|
126
124
|
licenses: []
|
127
125
|
|
@@ -152,9 +150,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
150
|
requirements: []
|
153
151
|
|
154
152
|
rubyforge_project: kuro-rs
|
155
|
-
rubygems_version: 1.6
|
153
|
+
rubygems_version: 1.8.6
|
156
154
|
signing_key:
|
157
155
|
specification_version: 3
|
158
|
-
summary: control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928)
|
156
|
+
summary: control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928), PC-OP-RS1 (http://buffalo.jp/products/catalog/item/p/pc-op-rs1/) and Arduino IR-Remote (http://www.256byte.com/2010/01/arduino-irremote/)
|
159
157
|
test_files: []
|
160
158
|
|