artoo-i2c 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -2
- data/Gemfile.lock +14 -13
- data/artoo-i2c.gemspec +1 -1
- data/docs/commands_blinkM.md +53 -0
- data/docs/commands_hmc.md +13 -0
- data/docs/events_hmc.md +9 -0
- data/docs/events_wiichuck.md +17 -0
- data/docs/events_wiiclassic.md +49 -0
- data/lib/artoo-i2c/version.rb +1 -1
- metadata +21 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc099c3cd52ece8b8caa32de9d4fe3b7e262535f
|
4
|
+
data.tar.gz: d7cb051c33da7af9c3a5389a8e2e4d9c57aa93aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aad2182b968a1200d4f8895e0ee23771fa3cddd24c1d97a4f6ae3a6ad1bf3f56dacf2ec168961dd8e1a242973a4951d56a769401b431591ed39b7264e06f382
|
7
|
+
data.tar.gz: b09a1abd821c12636fa030544d8c656bcd2d101ead3b2ab7f97f48b22afd0b3f425d468f8ee93fb61573bfb8dbba22f4dcd9d262ffc883d5c9a991b13a10d7d2
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,53 +1,54 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
artoo-i2c (0.
|
5
|
-
artoo (>= 1.
|
4
|
+
artoo-i2c (0.5.0)
|
5
|
+
artoo (>= 1.6.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
artoo (1.
|
10
|
+
artoo (1.6.0)
|
11
11
|
celluloid (~> 0.15.0)
|
12
12
|
celluloid-io (~> 0.15.0)
|
13
13
|
multi_json (~> 1.6)
|
14
14
|
pry (~> 0.9)
|
15
15
|
rake
|
16
16
|
reel (~> 0.4.0)
|
17
|
+
robeaux (~> 0.0.3)
|
17
18
|
thor (~> 0.18.1)
|
18
19
|
celluloid (0.15.2)
|
19
20
|
timers (~> 1.1.0)
|
20
21
|
celluloid-io (0.15.0)
|
21
22
|
celluloid (>= 0.15.0)
|
22
23
|
nio4r (>= 0.5.0)
|
23
|
-
coderay (1.0
|
24
|
+
coderay (1.1.0)
|
24
25
|
http (0.5.0)
|
25
26
|
http_parser.rb
|
26
|
-
http_parser.rb (0.6.0
|
27
|
+
http_parser.rb (0.6.0)
|
27
28
|
metaclass (0.0.1)
|
28
29
|
method_source (0.8.2)
|
29
30
|
minitest (5.0.7)
|
30
31
|
minitest-happy (1.0.0)
|
31
32
|
mocha (0.14.0)
|
32
33
|
metaclass (~> 0.0.1)
|
33
|
-
multi_json (1.8.
|
34
|
-
nio4r (0.
|
35
|
-
pry (0.9.12.
|
36
|
-
coderay (~> 1.0
|
34
|
+
multi_json (1.8.4)
|
35
|
+
nio4r (1.0.0)
|
36
|
+
pry (0.9.12.6)
|
37
|
+
coderay (~> 1.0)
|
37
38
|
method_source (~> 0.8)
|
38
39
|
slop (~> 3.4)
|
39
|
-
rake (10.1.
|
40
|
+
rake (10.1.1)
|
40
41
|
reel (0.4.0)
|
41
42
|
celluloid (>= 0.15.1)
|
42
43
|
celluloid-io (>= 0.15.0)
|
43
44
|
http (>= 0.5.0)
|
44
45
|
http_parser.rb (>= 0.6.0.beta.2)
|
45
46
|
websocket_parser (>= 0.1.4)
|
46
|
-
|
47
|
+
robeaux (0.0.3)
|
48
|
+
slop (3.4.7)
|
47
49
|
thor (0.18.1)
|
48
50
|
timers (1.1.0)
|
49
|
-
websocket_parser (0.1.
|
50
|
-
http
|
51
|
+
websocket_parser (0.1.6)
|
51
52
|
|
52
53
|
PLATFORMS
|
53
54
|
ruby
|
data/artoo-i2c.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
21
|
s.require_paths = ["lib"]
|
22
22
|
|
23
|
-
s.add_runtime_dependency 'artoo', '>= 1.
|
23
|
+
s.add_runtime_dependency 'artoo', '>= 1.6.0'
|
24
24
|
s.add_development_dependency 'minitest', '>= 5.0'
|
25
25
|
s.add_development_dependency 'minitest-happy'
|
26
26
|
s.add_development_dependency 'mocha', '>= 0.14.0'
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Commands
|
2
|
+
|
3
|
+
## rgb(red=0, green=0, blue=0)
|
4
|
+
|
5
|
+
Sets the color of the BlinkM RGB LED to the specified combination of RGB color provided (red, green and blue values should be between `0` and `255`).
|
6
|
+
|
7
|
+
##### Params
|
8
|
+
|
9
|
+
- **red** - params, red value
|
10
|
+
- **green** - params, green value
|
11
|
+
- **blue** - params, blue
|
12
|
+
|
13
|
+
##### Returns
|
14
|
+
|
15
|
+
`nil`
|
16
|
+
|
17
|
+
## fade(red=0, green=0, blue=0)
|
18
|
+
|
19
|
+
Fades the color of the BlinkM RGB LED to the specified combination of RGB color provided (red, green and blue values should be between `0` and `255`).
|
20
|
+
|
21
|
+
##### Params
|
22
|
+
|
23
|
+
- **red** - params, red value
|
24
|
+
- **green** - params, green value
|
25
|
+
- **blue** - params, blue
|
26
|
+
|
27
|
+
##### Returns
|
28
|
+
|
29
|
+
`nil`
|
30
|
+
|
31
|
+
## firmware_version
|
32
|
+
|
33
|
+
Returns an sring describing the I2C firmware version being used.
|
34
|
+
|
35
|
+
##### Params
|
36
|
+
|
37
|
+
`no params`
|
38
|
+
|
39
|
+
##### Returns
|
40
|
+
|
41
|
+
`String`
|
42
|
+
|
43
|
+
## color
|
44
|
+
|
45
|
+
Returns an array containing the RGB values for the current color (all integer between `0` and `255`).
|
46
|
+
|
47
|
+
##### Params
|
48
|
+
|
49
|
+
`no params`
|
50
|
+
|
51
|
+
##### Returns
|
52
|
+
|
53
|
+
`[red, green, blue] (integer)`
|
data/docs/events_hmc.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Events
|
2
|
+
|
3
|
+
## start_driver
|
4
|
+
|
5
|
+
Starts the driver
|
6
|
+
|
7
|
+
## c_button
|
8
|
+
|
9
|
+
Get's triggered every interval amount of time if the square button is pressed.
|
10
|
+
|
11
|
+
## z_button
|
12
|
+
|
13
|
+
Get's triggered every interval amount of time if the square button is pressed.
|
14
|
+
|
15
|
+
## joystick
|
16
|
+
|
17
|
+
Get's triggered every "interval" amount of time if a joystick event occured, you can access values `x`, `y.`
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Events
|
2
|
+
|
3
|
+
## start_driver
|
4
|
+
|
5
|
+
Starts the driver
|
6
|
+
|
7
|
+
## a_button
|
8
|
+
|
9
|
+
Get's triggered every interval amount of time if the a button is pressed.
|
10
|
+
|
11
|
+
## b_button
|
12
|
+
|
13
|
+
Get's triggered every interval amount of time if the b button is pressed.
|
14
|
+
|
15
|
+
## x_button
|
16
|
+
|
17
|
+
Get's triggered every interval amount of time if the x button is pressed.
|
18
|
+
|
19
|
+
## y_button
|
20
|
+
|
21
|
+
Get's triggered every interval amount of time if the y button is pressed.
|
22
|
+
|
23
|
+
## home_button
|
24
|
+
|
25
|
+
Get's triggered every interval amount of time if the home button is pressed.
|
26
|
+
|
27
|
+
## select_button
|
28
|
+
|
29
|
+
Get's triggered every interval amount of time if the select button (-) is pressed.
|
30
|
+
|
31
|
+
## start_button
|
32
|
+
|
33
|
+
Get's triggered every interval amount of time if the start button (+) is pressed.
|
34
|
+
|
35
|
+
## right_trigger
|
36
|
+
|
37
|
+
Get's triggered every interval amount of time if the right trigger button is pressed, makes right trigger value available.
|
38
|
+
|
39
|
+
## left_trigger
|
40
|
+
|
41
|
+
Get's triggered every interval amount of time if the left trigger button is pressed, makes left trigger value available.
|
42
|
+
|
43
|
+
## left_joystick
|
44
|
+
|
45
|
+
Get's triggered every "interval" amount of time if a left joystick event occured, you can access values `x`, `y`.
|
46
|
+
|
47
|
+
## right_joystick
|
48
|
+
|
49
|
+
Get's triggered every "interval" amount of time if a right joystick event occured, you can access values `x`, `y`.
|
data/lib/artoo-i2c/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artoo-i2c
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ron Evans
|
@@ -9,62 +9,62 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: artoo
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.
|
20
|
+
version: 1.6.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.
|
27
|
+
version: 1.6.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: minitest
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '5.0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '5.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: minitest-happy
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: mocha
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 0.14.0
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 0.14.0
|
70
70
|
description: Artoo standard drivers for i2c devices
|
@@ -74,13 +74,18 @@ executables: []
|
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
-
- .travis.yml
|
77
|
+
- ".travis.yml"
|
78
78
|
- Gemfile
|
79
79
|
- Gemfile.lock
|
80
80
|
- LICENSE
|
81
81
|
- README.md
|
82
82
|
- Rakefile
|
83
83
|
- artoo-i2c.gemspec
|
84
|
+
- docs/commands_blinkM.md
|
85
|
+
- docs/commands_hmc.md
|
86
|
+
- docs/events_hmc.md
|
87
|
+
- docs/events_wiichuck.md
|
88
|
+
- docs/events_wiiclassic.md
|
84
89
|
- examples/blinkm.rb
|
85
90
|
- examples/compass.rb
|
86
91
|
- lib/artoo-i2c.rb
|
@@ -105,17 +110,17 @@ require_paths:
|
|
105
110
|
- lib
|
106
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
107
112
|
requirements:
|
108
|
-
- -
|
113
|
+
- - ">="
|
109
114
|
- !ruby/object:Gem::Version
|
110
115
|
version: '0'
|
111
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
117
|
requirements:
|
113
|
-
- -
|
118
|
+
- - ">="
|
114
119
|
- !ruby/object:Gem::Version
|
115
120
|
version: '0'
|
116
121
|
requirements: []
|
117
122
|
rubyforge_project: artoo-i2c
|
118
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.2.1
|
119
124
|
signing_key:
|
120
125
|
specification_version: 4
|
121
126
|
summary: Artoo standard drivers for i2c devices
|