raspberry_pi_iot 0.0.12 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/doc/IoT.html +6 -4
  3. data/doc/RaspberryPiIoT.html +16 -10
  4. data/doc/_index.html +197 -21
  5. data/doc/class_list.html +1 -1
  6. data/doc/file.LICENSE.html +1 -1
  7. data/doc/file.README.html +15 -6
  8. data/doc/index.html +15 -6
  9. data/doc/method_list.html +590 -30
  10. data/doc/top-level-namespace.html +2 -2
  11. data/lib/iot/bh1750.rb +6 -4
  12. data/lib/iot/receptor.rb +6 -0
  13. data/lib/raspberry_pi.rb +1 -1
  14. data/lib/raspberry_pi_iot/version.rb +1 -1
  15. data/test/test.sh +5 -0
  16. data/test/test.txt +52 -169
  17. data/test/test_bh1750.rb +5 -0
  18. data/test/test_ky008.rb +41 -0
  19. metadata +2 -29
  20. data/doc/Actuator.html +0 -145
  21. data/doc/BH1750.html +0 -541
  22. data/doc/BME280.html +0 -276
  23. data/doc/BMP280.html +0 -276
  24. data/doc/BMxSensor.html +0 -557
  25. data/doc/BinaryActuator.html +0 -177
  26. data/doc/BinaryEffector.html +0 -246
  27. data/doc/BinaryReceptor.html +0 -387
  28. data/doc/BinarySensor.html +0 -168
  29. data/doc/Bus.html +0 -126
  30. data/doc/Button.html +0 -1276
  31. data/doc/DHT11.html +0 -287
  32. data/doc/DHT22.html +0 -287
  33. data/doc/DHTxxSensor.html +0 -361
  34. data/doc/DS18B20.html +0 -339
  35. data/doc/DigitalActuator.html +0 -164
  36. data/doc/DigitalEffector.html +0 -624
  37. data/doc/DigitalReceptor.html +0 -242
  38. data/doc/DigitalSensor.html +0 -162
  39. data/doc/Effector.html +0 -257
  40. data/doc/HCSR501.html +0 -172
  41. data/doc/HumitureSensor.html +0 -453
  42. data/doc/LED.html +0 -836
  43. data/doc/MAX44009.html +0 -830
  44. data/doc/RaspberryPi.html +0 -544
  45. data/doc/Receptor.html +0 -257
  46. data/doc/Sensor.html +0 -145
  47. data/doc/TemperatureSensor.html +0 -644
@@ -1,164 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: DigitalActuator
8
-
9
- &mdash; Documentation by YARD 0.9.16
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "DigitalActuator";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (D)</a> &raquo;
40
-
41
-
42
- <span class="title">DigitalActuator</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: DigitalActuator
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="DigitalEffector.html" title="DigitalEffector (class)">DigitalEffector</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="Effector.html" title="Effector (class)">Effector</a></span></li>
78
-
79
- <li class="next"><span class='object_link'><a href="DigitalEffector.html" title="DigitalEffector (class)">DigitalEffector</a></span></li>
80
-
81
- <li class="next">DigitalActuator</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
- </dl>
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
- <dl>
100
- <dt>Defined in:</dt>
101
- <dd>lib/digital_actuator.rb</dd>
102
- </dl>
103
-
104
- </div>
105
-
106
- <h2>Overview</h2><div class="docstring">
107
- <div class="discussion">
108
-
109
- <p>DigitalActuator - a synonym for DigitalEffector</p>
110
-
111
-
112
- </div>
113
- </div>
114
- <div class="tags">
115
-
116
-
117
- </div>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
- <h2>Method Summary</h2>
132
-
133
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="DigitalEffector.html" title="DigitalEffector (class)">DigitalEffector</a></span></h3>
134
- <p class="inherited"><span class='object_link'><a href="DigitalEffector.html#initialize-instance_method" title="DigitalEffector#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="DigitalEffector.html#off-class_method" title="DigitalEffector.off (method)">off</a></span>, <span class='object_link'><a href="DigitalEffector.html#off-instance_method" title="DigitalEffector#off (method)">#off</a></span>, <span class='object_link'><a href="DigitalEffector.html#off%3F-instance_method" title="DigitalEffector#off? (method)">#off?</a></span>, <span class='object_link'><a href="DigitalEffector.html#on-class_method" title="DigitalEffector.on (method)">on</a></span>, <span class='object_link'><a href="DigitalEffector.html#on-instance_method" title="DigitalEffector#on (method)">#on</a></span>, <span class='object_link'><a href="DigitalEffector.html#on%3F-instance_method" title="DigitalEffector#on? (method)">#on?</a></span></p>
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Effector.html" title="Effector (class)">Effector</a></span></h3>
145
- <p class="inherited"><span class='object_link'><a href="Effector.html#model_name-instance_method" title="Effector#model_name (method)">#model_name</a></span>, <span class='object_link'><a href="Effector.html#name-instance_method" title="Effector#name (method)">#name</a></span></p>
146
- <div id="constructor_details" class="method_details_list">
147
- <h2>Constructor Details</h2>
148
-
149
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="DigitalEffector.html#initialize-instance_method" title="DigitalEffector#initialize (method)">DigitalEffector</a></span></p>
150
-
151
- </div>
152
-
153
-
154
- </div>
155
-
156
- <div id="footer">
157
- Generated on Wed Dec 26 18:10:10 2018 by
158
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
159
- 0.9.16 (ruby-2.3.3).
160
- </div>
161
-
162
- </div>
163
- </body>
164
- </html>
@@ -1,624 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: DigitalEffector
8
-
9
- &mdash; Documentation by YARD 0.9.16
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "DigitalEffector";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (D)</a> &raquo;
40
-
41
-
42
- <span class="title">DigitalEffector</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: DigitalEffector
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="Effector.html" title="Effector (class)">Effector</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="Effector.html" title="Effector (class)">Effector</a></span></li>
78
-
79
- <li class="next">DigitalEffector</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/digital_effector.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>DigitalEffector - effector/actuator with digitized control</p>
108
-
109
-
110
- </div>
111
- </div>
112
- <div class="tags">
113
-
114
-
115
- </div><div id="subclasses">
116
- <h2>Direct Known Subclasses</h2>
117
- <p class="children"><span class='object_link'><a href="BinaryEffector.html" title="BinaryEffector (class)">BinaryEffector</a></span>, <span class='object_link'><a href="DigitalActuator.html" title="DigitalActuator (class)">DigitalActuator</a></span>, <span class='object_link'><a href="LED/RGB.html" title="LED::RGB (class)">LED::RGB</a></span></p>
118
- </div>
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
- <h2>
128
- Class Method Summary
129
- <small><a href="#" class="summary_toggle">collapse</a></small>
130
- </h2>
131
-
132
- <ul class="summary">
133
-
134
- <li class="public ">
135
- <span class="summary_signature">
136
-
137
- <a href="#off-class_method" title="off (class method)">.<strong>off</strong>(pin = @pin) &#x21d2; Object </a>
138
-
139
-
140
-
141
- </span>
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
- <span class="summary_desc"><div class='inline'></div></span>
152
-
153
- </li>
154
-
155
-
156
- <li class="public ">
157
- <span class="summary_signature">
158
-
159
- <a href="#on-class_method" title="on (class method)">.<strong>on</strong>(pin = @pin) &#x21d2; Object </a>
160
-
161
-
162
-
163
- </span>
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
- <span class="summary_desc"><div class='inline'></div></span>
174
-
175
- </li>
176
-
177
-
178
- </ul>
179
-
180
- <h2>
181
- Instance Method Summary
182
- <small><a href="#" class="summary_toggle">collapse</a></small>
183
- </h2>
184
-
185
- <ul class="summary">
186
-
187
- <li class="public ">
188
- <span class="summary_signature">
189
-
190
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(pins, state = :low) &#x21d2; DigitalEffector </a>
191
-
192
-
193
-
194
- </span>
195
-
196
-
197
- <span class="note title constructor">constructor</span>
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
- <span class="summary_desc"><div class='inline'>
207
- <p>A new instance of DigitalEffector.</p>
208
- </div></span>
209
-
210
- </li>
211
-
212
-
213
- <li class="public ">
214
- <span class="summary_signature">
215
-
216
- <a href="#off-instance_method" title="#off (instance method)">#<strong>off</strong>(pin = @pin) &#x21d2; Object </a>
217
-
218
-
219
-
220
- </span>
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
- <span class="summary_desc"><div class='inline'></div></span>
231
-
232
- </li>
233
-
234
-
235
- <li class="public ">
236
- <span class="summary_signature">
237
-
238
- <a href="#off%3F-instance_method" title="#off? (instance method)">#<strong>off?</strong>(pin = @pin) &#x21d2; Boolean </a>
239
-
240
-
241
-
242
- </span>
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
- <span class="summary_desc"><div class='inline'></div></span>
253
-
254
- </li>
255
-
256
-
257
- <li class="public ">
258
- <span class="summary_signature">
259
-
260
- <a href="#on-instance_method" title="#on (instance method)">#<strong>on</strong>(pin = @pin) &#x21d2; Object </a>
261
-
262
-
263
-
264
- </span>
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
- <span class="summary_desc"><div class='inline'></div></span>
275
-
276
- </li>
277
-
278
-
279
- <li class="public ">
280
- <span class="summary_signature">
281
-
282
- <a href="#on%3F-instance_method" title="#on? (instance method)">#<strong>on?</strong>(pin = @pin) &#x21d2; Boolean </a>
283
-
284
-
285
-
286
- </span>
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
- <span class="summary_desc"><div class='inline'></div></span>
297
-
298
- </li>
299
-
300
-
301
- </ul>
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Effector.html" title="Effector (class)">Effector</a></span></h3>
314
- <p class="inherited"><span class='object_link'><a href="Effector.html#model_name-instance_method" title="Effector#model_name (method)">#model_name</a></span>, <span class='object_link'><a href="Effector.html#name-instance_method" title="Effector#name (method)">#name</a></span></p>
315
- <div id="constructor_details" class="method_details_list">
316
- <h2>Constructor Details</h2>
317
-
318
- <div class="method_details first">
319
- <h3 class="signature first" id="initialize-instance_method">
320
-
321
- #<strong>initialize</strong>(pins, state = :low) &#x21d2; <tt><span class='object_link'><a href="" title="DigitalEffector (class)">DigitalEffector</a></span></tt>
322
-
323
-
324
-
325
-
326
-
327
- </h3><div class="docstring">
328
- <div class="discussion">
329
-
330
- <p>Returns a new instance of DigitalEffector</p>
331
-
332
-
333
- </div>
334
- </div>
335
- <div class="tags">
336
-
337
-
338
- </div><table class="source_code">
339
- <tr>
340
- <td>
341
- <pre class="lines">
342
-
343
-
344
- 11
345
- 12
346
- 13
347
- 14
348
- 15
349
- 16
350
- 17
351
- 18
352
- 19</pre>
353
- </td>
354
- <td>
355
- <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 11</span>
356
-
357
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_pins'>pins</span><span class='comma'>,</span> <span class='id identifier rubyid_state'>state</span><span class='op'>=</span><span class='symbol'>:low</span><span class='rparen'>)</span>
358
- <span class='ivar'>@states</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='comment'># ON / Off states for pin numbers
359
- </span> <span class='ivar'>@pins</span> <span class='op'>=</span> <span class='id identifier rubyid_pins'>pins</span> <span class='comment'># DigitalEffector.new {red: 17, green: 28, blue: 22}
360
- </span> <span class='ivar'>@pins</span><span class='period'>.</span><span class='id identifier rubyid_each_value'>each_value</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_pin'>pin</span><span class='op'>|</span>
361
- <span class='const'>RPi</span><span class='op'>::</span><span class='const'>GPIO</span><span class='period'>.</span><span class='id identifier rubyid_setup'>setup</span> <span class='id identifier rubyid_pin'>pin</span><span class='comma'>,</span> <span class='symbol'>:as</span> <span class='op'>=&gt;</span> <span class='symbol'>:output</span><span class='comma'>,</span> <span class='symbol'>:initialize</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_state'>state</span>
362
- <span class='ivar'>@states</span><span class='lbracket'>[</span><span class='id identifier rubyid_pin'>pin</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_state'>state</span> <span class='op'>==</span> <span class='symbol'>:high</span><span class='rparen'>)</span>
363
- <span class='kw'>end</span>
364
- <span class='ivar'>@pin</span> <span class='op'>=</span> <span class='id identifier rubyid_pins'>pins</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='comment'># default pin
365
- </span><span class='kw'>end</span></pre>
366
- </td>
367
- </tr>
368
- </table>
369
- </div>
370
-
371
- </div>
372
-
373
-
374
- <div id="class_method_details" class="method_details_list">
375
- <h2>Class Method Details</h2>
376
-
377
-
378
- <div class="method_details first">
379
- <h3 class="signature first" id="off-class_method">
380
-
381
- .<strong>off</strong>(pin = @pin) &#x21d2; <tt>Object</tt>
382
-
383
-
384
-
385
-
386
-
387
- </h3><table class="source_code">
388
- <tr>
389
- <td>
390
- <pre class="lines">
391
-
392
-
393
- 25
394
- 26
395
- 27</pre>
396
- </td>
397
- <td>
398
- <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 25</span>
399
-
400
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_off'>off</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='op'>=</span><span class='ivar'>@pin</span><span class='rparen'>)</span>
401
- <span class='const'>RPi</span><span class='op'>::</span><span class='const'>GPIO</span><span class='period'>.</span><span class='id identifier rubyid_set_low'>set_low</span> <span class='id identifier rubyid_pin'>pin</span>
402
- <span class='kw'>end</span></pre>
403
- </td>
404
- </tr>
405
- </table>
406
- </div>
407
-
408
- <div class="method_details ">
409
- <h3 class="signature " id="on-class_method">
410
-
411
- .<strong>on</strong>(pin = @pin) &#x21d2; <tt>Object</tt>
412
-
413
-
414
-
415
-
416
-
417
- </h3><table class="source_code">
418
- <tr>
419
- <td>
420
- <pre class="lines">
421
-
422
-
423
- 21
424
- 22
425
- 23</pre>
426
- </td>
427
- <td>
428
- <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 21</span>
429
-
430
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='op'>=</span><span class='ivar'>@pin</span><span class='rparen'>)</span>
431
- <span class='const'>RPi</span><span class='op'>::</span><span class='const'>GPIO</span><span class='period'>.</span><span class='id identifier rubyid_set_high'>set_high</span> <span class='id identifier rubyid_pin'>pin</span>
432
- <span class='kw'>end</span></pre>
433
- </td>
434
- </tr>
435
- </table>
436
- </div>
437
-
438
- </div>
439
-
440
- <div id="instance_method_details" class="method_details_list">
441
- <h2>Instance Method Details</h2>
442
-
443
-
444
- <div class="method_details first">
445
- <h3 class="signature first" id="off-instance_method">
446
-
447
- #<strong>off</strong>(pin = @pin) &#x21d2; <tt>Object</tt>
448
-
449
-
450
-
451
-
452
-
453
- </h3><table class="source_code">
454
- <tr>
455
- <td>
456
- <pre class="lines">
457
-
458
-
459
- 34
460
- 35
461
- 36
462
- 37</pre>
463
- </td>
464
- <td>
465
- <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 34</span>
466
-
467
- <span class='kw'>def</span> <span class='id identifier rubyid_off'>off</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='op'>=</span><span class='ivar'>@pin</span><span class='rparen'>)</span>
468
- <span class='const'><span class='object_link'><a href="" title="DigitalEffector (class)">DigitalEffector</a></span></span><span class='period'>.</span><span class='id identifier rubyid_off'><span class='object_link'><a href="#off-class_method" title="DigitalEffector.off (method)">off</a></span></span> <span class='id identifier rubyid_pin'>pin</span>
469
- <span class='ivar'>@states</span><span class='lbracket'>[</span><span class='id identifier rubyid_pin_number'>pin_number</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='rparen'>)</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>false</span>
470
- <span class='kw'>end</span></pre>
471
- </td>
472
- </tr>
473
- </table>
474
- </div>
475
-
476
- <div class="method_details ">
477
- <h3 class="signature " id="off?-instance_method">
478
-
479
- #<strong>off?</strong>(pin = @pin) &#x21d2; <tt>Boolean</tt>
480
-
481
-
482
-
483
-
484
-
485
- </h3><div class="docstring">
486
- <div class="discussion">
487
-
488
-
489
- </div>
490
- </div>
491
- <div class="tags">
492
-
493
- <p class="tag_title">Returns:</p>
494
- <ul class="return">
495
-
496
- <li>
497
-
498
-
499
- <span class='type'>(<tt>Boolean</tt>)</span>
500
-
501
-
502
-
503
- </li>
504
-
505
- </ul>
506
-
507
- </div><table class="source_code">
508
- <tr>
509
- <td>
510
- <pre class="lines">
511
-
512
-
513
- 43
514
- 44
515
- 45</pre>
516
- </td>
517
- <td>
518
- <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 43</span>
519
-
520
- <span class='kw'>def</span> <span class='id identifier rubyid_off?'>off?</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='op'>=</span><span class='ivar'>@pin</span><span class='rparen'>)</span>
521
- <span class='op'>!</span><span class='id identifier rubyid_on?'>on?</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='rparen'>)</span>
522
- <span class='kw'>end</span></pre>
523
- </td>
524
- </tr>
525
- </table>
526
- </div>
527
-
528
- <div class="method_details ">
529
- <h3 class="signature " id="on-instance_method">
530
-
531
- #<strong>on</strong>(pin = @pin) &#x21d2; <tt>Object</tt>
532
-
533
-
534
-
535
-
536
-
537
- </h3><table class="source_code">
538
- <tr>
539
- <td>
540
- <pre class="lines">
541
-
542
-
543
- 29
544
- 30
545
- 31
546
- 32</pre>
547
- </td>
548
- <td>
549
- <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 29</span>
550
-
551
- <span class='kw'>def</span> <span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='op'>=</span><span class='ivar'>@pin</span><span class='rparen'>)</span>
552
- <span class='const'><span class='object_link'><a href="" title="DigitalEffector (class)">DigitalEffector</a></span></span><span class='period'>.</span><span class='id identifier rubyid_on'><span class='object_link'><a href="#on-class_method" title="DigitalEffector.on (method)">on</a></span></span> <span class='id identifier rubyid_pin'>pin</span>
553
- <span class='ivar'>@states</span><span class='lbracket'>[</span><span class='id identifier rubyid_pin_number'>pin_number</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='rparen'>)</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>true</span>
554
- <span class='kw'>end</span></pre>
555
- </td>
556
- </tr>
557
- </table>
558
- </div>
559
-
560
- <div class="method_details ">
561
- <h3 class="signature " id="on?-instance_method">
562
-
563
- #<strong>on?</strong>(pin = @pin) &#x21d2; <tt>Boolean</tt>
564
-
565
-
566
-
567
-
568
-
569
- </h3><div class="docstring">
570
- <div class="discussion">
571
-
572
-
573
- </div>
574
- </div>
575
- <div class="tags">
576
-
577
- <p class="tag_title">Returns:</p>
578
- <ul class="return">
579
-
580
- <li>
581
-
582
-
583
- <span class='type'>(<tt>Boolean</tt>)</span>
584
-
585
-
586
-
587
- </li>
588
-
589
- </ul>
590
-
591
- </div><table class="source_code">
592
- <tr>
593
- <td>
594
- <pre class="lines">
595
-
596
-
597
- 39
598
- 40
599
- 41</pre>
600
- </td>
601
- <td>
602
- <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 39</span>
603
-
604
- <span class='kw'>def</span> <span class='id identifier rubyid_on?'>on?</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='op'>=</span><span class='ivar'>@pin</span><span class='rparen'>)</span>
605
- <span class='ivar'>@states</span><span class='lbracket'>[</span><span class='id identifier rubyid_pin_number'>pin_number</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='rparen'>)</span><span class='rbracket'>]</span>
606
- <span class='kw'>end</span></pre>
607
- </td>
608
- </tr>
609
- </table>
610
- </div>
611
-
612
- </div>
613
-
614
- </div>
615
-
616
- <div id="footer">
617
- Generated on Wed Dec 26 18:10:10 2018 by
618
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
619
- 0.9.16 (ruby-2.3.3).
620
- </div>
621
-
622
- </div>
623
- </body>
624
- </html>