arduino_firmata 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb79730f81ce6d1e5cf252847c00bc6667cd46e4
4
- data.tar.gz: 9f589cb5dbff2f8a143cdf8e29f1ae4890a3d8c5
3
+ metadata.gz: 69707c79dd76c49a994b409b2d851d8b1efda32d
4
+ data.tar.gz: 085a7a2e407f6c844c68bab794f4560b7caa5e6e
5
5
  SHA512:
6
- metadata.gz: ab7369bd8c68814f5273076fa845558e38531803c48a00454e0425a727edf33293f24307c1844f18b45c780f47f03bdb3f79bcbae2d12d7b6752e46f3ce7b92e
7
- data.tar.gz: a8247133ee445fdab29b976f42a65ef5006b15af57950e56d47f573e8f285af82c585d149d3306df64823d1dfc2084c7b0a0d7da13f0a87126693e6d0b96ef5a
6
+ metadata.gz: 2147b27f71082dc32ceedaf0215928087d79008fbb590ff27b12020bb5796de67eb96f028f9335d4dbf3d04db7e82724aced6df0e234d13a2f1242ea821033e1
7
+ data.tar.gz: 3994d4c4d371e011b7b7e4ac5126a11dcbe23f2ea82d67a49ffb9435e6af2d8b0a8a0a5d1d94eb6ce6e77159d2a5867959e732c4b5fd06bd98d099c6a2aea36a
@@ -1,3 +1,8 @@
1
+ === 0.3.6 2013-11-18
2
+
3
+ * bugfix detection of old_arduino_device?
4
+ * bugfix analog_read for ArduinoUNO #35
5
+
1
6
  === 0.3.5 2013-11-12
2
7
 
3
8
  * check arguments on digital/analog read/write #34
@@ -44,6 +44,13 @@ module ArduinoFirmata
44
44
  @thread_status = false
45
45
  end
46
46
 
47
+ loop do
48
+ write REPORT_VERSION
49
+ sleep 0.5
50
+ break if @version
51
+ end
52
+ sleep 0.5 if old_arduino_device?
53
+
47
54
  (0...6).each do |i|
48
55
  write(REPORT_ANALOG | i)
49
56
  write 1
@@ -52,13 +59,6 @@ module ArduinoFirmata
52
59
  write(REPORT_DIGITAL | i)
53
60
  write 1
54
61
  end
55
-
56
- loop do
57
- write REPORT_VERSION
58
- sleep 0.5
59
- break if @version
60
- end
61
- sleep 0.5 if old_arduino_device?
62
62
  end
63
63
 
64
64
  def run(&block)
@@ -71,7 +71,7 @@ module ArduinoFirmata
71
71
  end
72
72
 
73
73
  def old_arduino_device?
74
- File.basename(@serialport_name) !~ /^tty\.usbmodem/
74
+ File.basename(@serialport_name) =~ /^tty\.usbserial/ ? true : false
75
75
  end
76
76
 
77
77
  def close
@@ -1,3 +1,3 @@
1
1
  module ArduinoFirmata
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arduino_firmata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-12 00:00:00.000000000 Z
11
+ date: 2013-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake