artoo-arduino 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/artoo/commands/firmata.rb +3 -4
- data/lib/artoo-arduino/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc032976383aac9fc633e0d97d13e0de36e36709
|
4
|
+
data.tar.gz: 025d42555f25ace515f6c78f2648282f4d7c4119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c43b02b6ce8430db74737a71525bf27a3a62b457d3e12ab131ac47bf63fc8e48664d707e971b878176a07081ee8180a51f4e7a87c2f760564b7e3efc3636cb8
|
7
|
+
data.tar.gz: 2d58f47a05b165037af96a41abfa9b260d7a791d87808dbfa3641bd011cdd11290fe348f175b0bbcd71a7a5afe7d559dddc2708f0612f3f991198280b2c3cae9
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
artoo-arduino (1.4.
|
4
|
+
artoo-arduino (1.4.1)
|
5
5
|
artoo (>= 1.6.0)
|
6
6
|
artoo-gpio
|
7
7
|
artoo-i2c
|
@@ -10,14 +10,14 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: http://rubygems.org/
|
12
12
|
specs:
|
13
|
-
artoo (1.6.
|
13
|
+
artoo (1.6.1)
|
14
14
|
celluloid (~> 0.15.0)
|
15
15
|
celluloid-io (~> 0.15.0)
|
16
16
|
multi_json (~> 1.6)
|
17
17
|
pry (~> 0.9)
|
18
18
|
rake
|
19
19
|
reel (~> 0.4.0)
|
20
|
-
robeaux (~> 0.0.
|
20
|
+
robeaux (~> 0.0.4)
|
21
21
|
thor (~> 0.18.1)
|
22
22
|
artoo-gpio (0.4.0)
|
23
23
|
artoo (>= 1.6.0)
|
@@ -54,7 +54,7 @@ GEM
|
|
54
54
|
http (>= 0.5.0)
|
55
55
|
http_parser.rb (>= 0.6.0.beta.2)
|
56
56
|
websocket_parser (>= 0.1.4)
|
57
|
-
robeaux (0.0.
|
57
|
+
robeaux (0.0.4)
|
58
58
|
slop (3.4.7)
|
59
59
|
thor (0.18.1)
|
60
60
|
timers (1.1.0)
|
@@ -5,15 +5,14 @@ module Artoo
|
|
5
5
|
class Firmata < Commands
|
6
6
|
package_name "firmata"
|
7
7
|
|
8
|
-
desc "upload", "Uploads firmata to the arduino using avrdude"
|
9
|
-
|
10
|
-
def upload
|
8
|
+
desc "upload [ADDRESS]", "Uploads firmata to the arduino using avrdude"
|
9
|
+
def upload(address)
|
11
10
|
part = '-patmega328p'
|
12
11
|
programmer = '-carduino'
|
13
12
|
baudrate = '-b115200'
|
14
13
|
hex_path = File.join(File.expand_path(File.dirname(__FILE__)), "StandardFirmata.cpp.hex")
|
15
14
|
hex_file = "-Uflash:w:#{ hex_path }:i"
|
16
|
-
port = "-P
|
15
|
+
port = (address[/[\/\:]/].nil?) ? "-P/dev/#{ address }" : "-P#{ address }"
|
17
16
|
case os
|
18
17
|
when :linux
|
19
18
|
run("avrdude #{ part } #{ programmer } #{ port } #{ baudrate } -D #{ hex_file }")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artoo-arduino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ron Evans
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-02-
|
14
|
+
date: 2014-02-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: artoo
|
@@ -172,8 +172,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: '0'
|
173
173
|
requirements: []
|
174
174
|
rubyforge_project: artoo-arduino
|
175
|
-
rubygems_version: 2.2.
|
175
|
+
rubygems_version: 2.2.2
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: Artoo adaptor and driver for Arduino
|
179
179
|
test_files: []
|
180
|
+
has_rdoc:
|