arduino_build_notifier 0.0.2 → 0.0.3
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.
data/Gemfile.lock
CHANGED
@@ -1,8 +1,23 @@
|
|
1
|
+
require 'celluloid'
|
2
|
+
|
1
3
|
module ArduinoBuildNotifier
|
2
4
|
module Arduino
|
3
5
|
module Indicators
|
4
6
|
class Building < Base
|
7
|
+
include Celluloid
|
8
|
+
|
9
|
+
def on
|
10
|
+
@timer = every 1 do
|
11
|
+
@led.on
|
12
|
+
sleep 0.5
|
13
|
+
@led.off
|
14
|
+
end
|
15
|
+
end
|
5
16
|
|
17
|
+
def off
|
18
|
+
@led.off
|
19
|
+
@timer.cancel if @timer
|
20
|
+
end
|
6
21
|
end
|
7
22
|
end
|
8
23
|
end
|