arduino_build_notifier 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
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
|