lorraine 0.0.3 → 0.0.4

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.
@@ -44,8 +44,8 @@ module Lorraine
44
44
  method_option :remote, type: :boolean, aliases: "-r", desc: "Interact over the network.", default: false
45
45
  def interactive
46
46
  say "Opening a connection to the LED monstrosity...", :yellow
47
- # c = Lorraine::Connection.new
48
- # sleep 5
47
+ c = Lorraine::Connection.new
48
+ sleep 5
49
49
  say "... opened.", :green
50
50
  while true
51
51
  response = ask(">> ")
@@ -54,8 +54,8 @@ module Lorraine
54
54
  else
55
55
  pixel, r, g, b = response.split(" ")
56
56
  puts response
57
- # m = Lorraine::Message.new :set_pixel, pixel, (r * 4095).to_i, (g * 4095).to_i, (b * 4095).to_i
58
- # c.write_message(m)
57
+ m = Lorraine::Message.new :set_pixel, pixel, (r * 4095).to_i, (g * 4095).to_i, (b * 4095).to_i
58
+ c.write_message(m)
59
59
  end
60
60
  end
61
61
  end
@@ -1,3 +1,3 @@
1
1
  module Lorraine
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: lorraine
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Wil Gieseler