arduino-lights 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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/arduino-lights.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0b8469046ecfb3cca87bace15e330bfa9018135
4
- data.tar.gz: fa69757d67d1fe221aeaa2d854d86adcbc102a23
3
+ metadata.gz: 633801e321c836b66a0770951b1bf12fa012ba01
4
+ data.tar.gz: a29073c6c45d0e03061c7cb364ad4725b2848131
5
5
  SHA512:
6
- metadata.gz: '0492f9046cb9bdf9a2b420f1c4185a6fb067a63e5cacf63fcc2326a393550a8785eb9437b4be2532753366275fe1988f7e651f0b49d864de8b8c288dc66af742'
7
- data.tar.gz: 979b8ad7fe171c295589bf8cda548dc7c1a639d263483c2670f7e5c6545935d976bd6c40e5822dbe57a0723b1e8ac2255ecb7104f9ec9cb0b708011dd3f05c2c
6
+ metadata.gz: df7cb35ad00468e8dba1e7cf1966359567942091421986592f131e02cdf001a35b959afc9b1a4cdba966be9ad4c990589788677f2d5dac640b08ef4c7ed2498f
7
+ data.tar.gz: 51b557c14abf057409d624f61f4351a851aba10ba672c49e10b8da4b8c1688878882d7eea3ccfe3b51cbe3e43738f4c60cb2bc9fd29e607b9f93c7a02f5eff9b
@@ -7,7 +7,7 @@ module ArduinoLights
7
7
 
8
8
  def self.serial_port
9
9
  @port ||= begin
10
- res = SerialPort.new(SERIAL_PORT, baud: SERIAL_RATE, flow_control: SerialPort::SOFT)
10
+ res = SerialPort.new(SERIAL_PORT, SERIAL_RATE, 8, 1, SerialPort::NONE)
11
11
  sleep(2)
12
12
  res
13
13
  end
@@ -50,9 +50,9 @@ end
50
50
  if __FILE__ == $0
51
51
  pixel = 0
52
52
  while (true)
53
- pixels = (0..(Arduino::PIXELS-1)).map { [0,0,0] }
53
+ pixels = (0..(ArduinoLights::PIXELS-1)).map { [0,0,0] }
54
54
  pixels[pixel] = [100,50,50]
55
- Arduino::draw_pixel_map(pixels)
56
- pixel = (pixel + 1) % Arduino::PIXELS
55
+ ArduinoLights::draw_pixel_map(pixels)
56
+ pixel = (pixel + 1) % ArduinoLights::PIXELS
57
57
  end
58
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arduino-lights
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arthur Taylor