arduino_firmata 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +1 -0
- data/bin/arduino_firmata +20 -0
- data/lib/arduino_firmata.rb +1 -1
- metadata +5 -3
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/bin/arduino_firmata
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rubygems'
|
3
|
+
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
|
4
|
+
require 'arduino_firmata'
|
5
|
+
|
6
|
+
if ARGV.size < 2
|
7
|
+
STDERR.puts "arduino_firmata /dev/tty.usb-devicename COMMAND"
|
8
|
+
STDERR.puts "arduino_firmata /dev/tty.usb-devicename \"analog_read 1\""
|
9
|
+
STDERR.puts "arduino_firmata /dev/tty.usb-devicename \"servo_write 11, 135\""
|
10
|
+
exit 1
|
11
|
+
end
|
12
|
+
|
13
|
+
begin
|
14
|
+
arduino = ArduinoFirmata.connect ARGV.shift
|
15
|
+
rescue StandardError, Timeout::Error => e
|
16
|
+
STDERR.puts e
|
17
|
+
exit 1
|
18
|
+
end
|
19
|
+
print arduino.instance_eval ARGV.join(' ')
|
20
|
+
sleep 1
|
data/lib/arduino_firmata.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arduino_firmata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -84,7 +84,8 @@ dependencies:
|
|
84
84
|
description: Arduino Firmata protocol (http://firmata.org) implementation on Ruby.
|
85
85
|
email:
|
86
86
|
- hashimoto@shokai.org
|
87
|
-
executables:
|
87
|
+
executables:
|
88
|
+
- arduino_firmata
|
88
89
|
extensions: []
|
89
90
|
extra_rdoc_files:
|
90
91
|
- History.txt
|
@@ -98,6 +99,7 @@ files:
|
|
98
99
|
- Manifest.txt
|
99
100
|
- README.rdoc
|
100
101
|
- Rakefile
|
102
|
+
- bin/arduino_firmata
|
101
103
|
- lib/arduino_firmata.rb
|
102
104
|
- lib/arduino_firmata/arduino.rb
|
103
105
|
- lib/arduino_firmata/const.rb
|
@@ -136,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
138
|
version: '0'
|
137
139
|
segments:
|
138
140
|
- 0
|
139
|
-
hash:
|
141
|
+
hash: 1103452187959335271
|
140
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
143
|
none: false
|
142
144
|
requirements:
|