douban.fm.arduino 0.0.1 → 0.0.2

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.
@@ -79,7 +79,7 @@ class DoubanFMArduinoCLI
79
79
  puts 'started'
80
80
 
81
81
  while true do
82
- while (channel_id = sp.gets) do
82
+ while (channel_id = sp.gets.chomp) do
83
83
  uri = URI("http://#{options.remote}/channel/#{channel_id}")
84
84
  Net::HTTP.get(uri)
85
85
  end
@@ -26,7 +26,8 @@ void turnOnLed(int which) {
26
26
  for (int i = 0; i < LENGTH; ++i) {
27
27
  if (i == which) {
28
28
  digitalWrite(ledPins[i], HIGH);
29
- Serial.print(channelIds[i]);
29
+ Serial.println(channelIds[i]);
30
+ Serial.flush();
30
31
  } else {
31
32
  digitalWrite(ledPins[i], LOW);
32
33
  }
@@ -1,3 +1,3 @@
1
1
  module DoubanFMArduino
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: douban.fm.arduino
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: serialport
16
- requirement: &70152469417760 !ruby/object:Gem::Requirement
16
+ requirement: &70107250300380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70152469417760
24
+ version_requirements: *70107250300380
25
25
  description: douban.fm.arduino
26
26
  email:
27
27
  - hxliang1982@gmail.com
@@ -37,7 +37,7 @@ files:
37
37
  - Rakefile
38
38
  - bin/douban.fm.arduino
39
39
  - douban.fm.arduino.gemspec
40
- - douban_fm.ino
40
+ - douban_fm/douban_fm.ino
41
41
  - lib/douban.fm.arduino.rb
42
42
  - lib/douban.fm.arduino/version.rb
43
43
  homepage: https://github.com/honnix/douban.fm.arduino