domotics-arduino 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.
@@ -21,12 +21,12 @@ module Domotics
21
21
 
22
22
  # Convert to High Level State
23
23
  def to_hls(value)
24
- value == ArduinoSerial::HIGH ? :on : :off
24
+ value == ArduinoBase::HIGH ? :on : :off
25
25
  end
26
26
 
27
27
  # Convert to Low Level State
28
28
  def to_lls(value)
29
- value == :on ? ArduinoSerial::HIGH : ArduinoSerial::LOW
29
+ value == :on ? ArduinoBase::HIGH : ArduinoBase::LOW
30
30
  end
31
31
  end
32
32
  end
@@ -8,7 +8,7 @@ module Domotics
8
8
  def initialize(args_hash = {})
9
9
  super
10
10
  @board.set_input_pullup @pin
11
- @board.set_watch @pin, ArduinoSerial::WATCHON
11
+ @board.set_watch @pin, ArduinoBase::WATCHON
12
12
  end
13
13
  end
14
14
  end
@@ -5,7 +5,7 @@ module Domotics
5
5
  include DigitalPin
6
6
  def initialize(args_hash = {})
7
7
  super
8
- @board.set_watch @pin, ArduinoSerial::WATCHON
8
+ @board.set_watch @pin, ArduinoBase::WATCHON
9
9
  end
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Domotics
2
2
  module Arduino
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domotics-arduino
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: