kuro-rs 0.0.6 → 0.0.7

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.
Files changed (5) hide show
  1. data/History.txt +4 -0
  2. data/README.rdoc +22 -19
  3. data/bin/kuro-rs +2 -0
  4. data/lib/kuro-rs.rb +1 -1
  5. metadata +7 -9
@@ -1,3 +1,7 @@
1
+ === 0.0.7 2011-12-03
2
+
3
+ * add note for Arduino IR-Remote
4
+
1
5
  === 0.0.6 2011-10-31
2
6
 
3
7
  * bug fix kuro-rs-server
@@ -4,7 +4,8 @@
4
4
 
5
5
  == DESCRIPTION:
6
6
 
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/)
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
- require 'rubygems'
16
- require 'kuro-rs'
17
-
18
- # open KURO-RS
19
- kr = KuroRs.open('/dev/tty.usbserial-0012a3b4')
16
+ require 'rubygems'
17
+ require 'kuro-rs'
20
18
 
21
- # read
22
- puts kr.read
23
- ## => hex dump (ffffffff0300f0e0018083...)
19
+ # open KURO-RS
20
+ kr = KuroRs.open('/dev/tty.usbserial-0012a3b4')
24
21
 
25
- # write
26
- kr.write 'ffffffff0300f0e0018083'
22
+ # read
23
+ puts kr.read
24
+ ## => hex dump (ffffffff0300f0e0018083...)
27
25
 
28
- # close
29
- kr.close
26
+ # write
27
+ kr.write 'ffffffff0300f0e0018083'
30
28
 
31
- # block
32
- KuroRs.open('/dev/tty.usbserial-0012a3b4'){|k|
33
- k.verbose = true
34
- puts k.read
35
- ## => hex dump (ffffffff0300f0e0018083...)
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
 
@@ -19,6 +19,8 @@ rescue KuroRs::Error, StandardError => e
19
19
  exit 1
20
20
  end
21
21
 
22
+ # sleep 2 ## for Arduno IR-Remote
23
+
22
24
  kr.verbose = true
23
25
  if hex_str.to_s.size > 0
24
26
  kr.write hex_str
@@ -10,5 +10,5 @@ Dir.glob(File.dirname(__FILE__)+'/kuro-rs/*.rb').each do |f|
10
10
  end
11
11
 
12
12
  module KuroRs
13
- VERSION = '0.0.6'
13
+ VERSION = '0.0.7'
14
14
  end
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
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-11-01 00:00:00 +09:00
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) and PC-OP-RS1 (http://buffalo.jp/products/catalog/item/p/pc-op-rs1/)
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.2
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) and PC-OP-RS1 (http://buffalo.jp/products/catalog/item/p/pc-op-rs1/)
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