raspberry_pi_iot 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/doc/Actuator.html +1 -1
  3. data/doc/BH1750.html +1 -1
  4. data/doc/BME280.html +1 -1
  5. data/doc/BMP280.html +1 -1
  6. data/doc/BMxSensor.html +1 -1
  7. data/doc/BinaryActuator.html +1 -1
  8. data/doc/BinaryEffector.html +1 -1
  9. data/doc/BinaryReceptor.html +1 -1
  10. data/doc/BinarySensor.html +1 -1
  11. data/doc/Bus.html +1 -1
  12. data/doc/Button.html +343 -53
  13. data/doc/DHT11.html +1 -1
  14. data/doc/DHT22.html +1 -1
  15. data/doc/DHTxxSensor.html +1 -1
  16. data/doc/DS18B20.html +1 -1
  17. data/doc/DigitalActuator.html +1 -1
  18. data/doc/DigitalEffector.html +16 -28
  19. data/doc/DigitalReceptor.html +1 -1
  20. data/doc/DigitalSensor.html +1 -1
  21. data/doc/Effector.html +1 -1
  22. data/doc/HCSR501.html +1 -1
  23. data/doc/HumitureSensor.html +1 -1
  24. data/doc/IoT.html +1 -1
  25. data/doc/LED.html +99 -47
  26. data/doc/MAX44009.html +1 -1
  27. data/doc/RaspberryPi.html +1 -1
  28. data/doc/RaspberryPiIoT.html +115 -0
  29. data/doc/Receptor.html +1 -1
  30. data/doc/Sensor.html +1 -1
  31. data/doc/TemperatureSensor.html +1 -1
  32. data/doc/_index.html +16 -1
  33. data/doc/class_list.html +1 -1
  34. data/doc/file.LICENSE.html +92 -0
  35. data/doc/file.README.html +26 -4
  36. data/doc/file_list.html +5 -0
  37. data/doc/index.html +26 -4
  38. data/doc/method_list.html +105 -113
  39. data/doc/top-level-namespace.html +2 -2
  40. data/lib/button.rb +28 -4
  41. data/lib/digital_effector.rb +8 -14
  42. data/lib/led.rb +4 -0
  43. data/lib/led_rgb.rb +27 -44
  44. data/lib/raspberry_pi_iot.rb +7 -0
  45. data/test/test_Raspberry_Pi_IoT.rb +11 -0
  46. data/test/test_button.rb +9 -3
  47. data/test/test_helper.rb +4 -0
  48. data/test/test_led.rb +4 -4
  49. data/test/test_led_rgb.rb +25 -2
  50. data/test/test_thermal.rb +27 -0
  51. metadata +69 -4
@@ -355,14 +355,14 @@
355
355
  <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 11</span>
356
356
 
357
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>
359
- <span class='ivar'>@pins</span> <span class='op'>=</span> <span class='id identifier rubyid_pins'>pins</span>
360
- <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>
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
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
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
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>
365
- <span class='kw'>end</span></pre>
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
366
  </td>
367
367
  </tr>
368
368
  </table>
@@ -465,8 +465,8 @@
465
465
  <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 34</span>
466
466
 
467
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="BinaryEffector.html" title="BinaryEffector (class)">BinaryEffector</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='ivar'>@pin</span>
469
- <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='kw'>false</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
470
  <span class='kw'>end</span></pre>
471
471
  </td>
472
472
  </tr>
@@ -510,12 +510,12 @@
510
510
  <pre class="lines">
511
511
 
512
512
 
513
- 49
514
- 50
515
- 51</pre>
513
+ 43
514
+ 44
515
+ 45</pre>
516
516
  </td>
517
517
  <td>
518
- <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 49</span>
518
+ <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 43</span>
519
519
 
520
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
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>
@@ -549,8 +549,8 @@
549
549
  <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 29</span>
550
550
 
551
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="BinaryEffector.html" title="BinaryEffector (class)">BinaryEffector</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='ivar'>@pin</span>
553
- <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='kw'>true</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
554
  <span class='kw'>end</span></pre>
555
555
  </td>
556
556
  </tr>
@@ -596,25 +596,13 @@
596
596
 
597
597
  39
598
598
  40
599
- 41
600
- 42
601
- 43
602
- 44
603
- 45
604
- 46
605
- 47</pre>
599
+ 41</pre>
606
600
  </td>
607
601
  <td>
608
602
  <pre class="code"><span class="info file"># File 'lib/digital_effector.rb', line 39</span>
609
603
 
610
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>
611
- <span class='id identifier rubyid_state'>state</span> <span class='op'>=</span> <span class='kw'>nil</span>
612
- <span class='kw'>if</span> <span class='id identifier rubyid_pin'>pin</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Fixnum</span><span class='tstring_end'>&#39;</span></span> <span class='comment'># by number
613
- </span> <span class='id identifier rubyid_state'>state</span> <span class='op'>=</span> <span class='ivar'>@states</span><span class='lbracket'>[</span><span class='id identifier rubyid_pin'>pin</span><span class='rbracket'>]</span>
614
- <span class='kw'>elsif</span> <span class='ivar'>@pins</span><span class='lbracket'>[</span><span class='id identifier rubyid_pin'>pin</span><span class='rbracket'>]</span> <span class='comment'># by name
615
- </span> <span class='id identifier rubyid_state'>state</span> <span class='op'>=</span> <span class='ivar'>@states</span><span class='lbracket'>[</span><span class='ivar'>@pins</span><span class='lbracket'>[</span><span class='id identifier rubyid_pin'>pin</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
616
- <span class='kw'>end</span>
617
- <span class='id identifier rubyid_state'>state</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>
618
606
  <span class='kw'>end</span></pre>
619
607
  </td>
620
608
  </tr>
@@ -626,7 +614,7 @@
626
614
  </div>
627
615
 
628
616
  <div id="footer">
629
- Generated on Tue Dec 18 16:03:45 2018 by
617
+ Generated on Thu Dec 20 18:09:45 2018 by
630
618
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
631
619
  0.9.16 (ruby-2.3.3).
632
620
  </div>
@@ -232,7 +232,7 @@
232
232
  </div>
233
233
 
234
234
  <div id="footer">
235
- Generated on Tue Dec 18 16:03:45 2018 by
235
+ Generated on Thu Dec 20 18:09:45 2018 by
236
236
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
237
237
  0.9.16 (ruby-2.3.3).
238
238
  </div>
@@ -152,7 +152,7 @@
152
152
  </div>
153
153
 
154
154
  <div id="footer">
155
- Generated on Tue Dec 18 16:03:45 2018 by
155
+ Generated on Thu Dec 20 18:09:46 2018 by
156
156
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
157
157
  0.9.16 (ruby-2.3.3).
158
158
  </div>
data/doc/Effector.html CHANGED
@@ -247,7 +247,7 @@
247
247
  </div>
248
248
 
249
249
  <div id="footer">
250
- Generated on Tue Dec 18 16:03:46 2018 by
250
+ Generated on Thu Dec 20 18:09:46 2018 by
251
251
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
252
252
  0.9.16 (ruby-2.3.3).
253
253
  </div>
data/doc/HCSR501.html CHANGED
@@ -162,7 +162,7 @@
162
162
  </div>
163
163
 
164
164
  <div id="footer">
165
- Generated on Tue Dec 18 16:03:46 2018 by
165
+ Generated on Thu Dec 20 18:09:47 2018 by
166
166
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
167
167
  0.9.16 (ruby-2.3.3).
168
168
  </div>
@@ -443,7 +443,7 @@
443
443
  </div>
444
444
 
445
445
  <div id="footer">
446
- Generated on Tue Dec 18 16:03:47 2018 by
446
+ Generated on Thu Dec 20 18:09:47 2018 by
447
447
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
448
448
  0.9.16 (ruby-2.3.3).
449
449
  </div>
data/doc/IoT.html CHANGED
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Tue Dec 18 16:03:38 2018 by
119
+ Generated on Thu Dec 20 18:09:39 2018 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.9.16 (ruby-2.3.3).
122
122
  </div>
data/doc/LED.html CHANGED
@@ -242,7 +242,9 @@ secs, then pause for &#39;switched_off&#39; secs.</p>
242
242
 
243
243
 
244
244
 
245
- <span class="summary_desc"><div class='inline'></div></span>
245
+ <span class="summary_desc"><div class='inline'>
246
+ <p>Turn off the LED.</p>
247
+ </div></span>
246
248
 
247
249
  </li>
248
250
 
@@ -264,7 +266,9 @@ secs, then pause for &#39;switched_off&#39; secs.</p>
264
266
 
265
267
 
266
268
 
267
- <span class="summary_desc"><div class='inline'></div></span>
269
+ <span class="summary_desc"><div class='inline'>
270
+ <p>Turn the LED off for N seconds.</p>
271
+ </div></span>
268
272
 
269
273
  </li>
270
274
 
@@ -286,7 +290,9 @@ secs, then pause for &#39;switched_off&#39; secs.</p>
286
290
 
287
291
 
288
292
 
289
- <span class="summary_desc"><div class='inline'></div></span>
293
+ <span class="summary_desc"><div class='inline'>
294
+ <p>Turn on the LED.</p>
295
+ </div></span>
290
296
 
291
297
  </li>
292
298
 
@@ -308,7 +314,9 @@ secs, then pause for &#39;switched_off&#39; secs.</p>
308
314
 
309
315
 
310
316
 
311
- <span class="summary_desc"><div class='inline'></div></span>
317
+ <span class="summary_desc"><div class='inline'>
318
+ <p>Turn the LED on for N seconds.</p>
319
+ </div></span>
312
320
 
313
321
  </li>
314
322
 
@@ -478,12 +486,12 @@ secs, then pause for &#39;switched_off&#39; secs.</p>
478
486
  <pre class="lines">
479
487
 
480
488
 
481
- 43
482
- 44
483
- 45</pre>
489
+ 47
490
+ 48
491
+ 49</pre>
484
492
  </td>
485
493
  <td>
486
- <pre class="code"><span class="info file"># File 'lib/led.rb', line 43</span>
494
+ <pre class="code"><span class="info file"># File 'lib/led.rb', line 47</span>
487
495
 
488
496
  <span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="LED (class)">LED</a></span></span><span class='period'>.</span><span class='id identifier rubyid_создать'>создать</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span> <span class='op'>=</span> <span class='int'>25</span><span class='rparen'>)</span>
489
497
  <span class='const'><span class='object_link'><a href="" title="LED (class)">LED</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="LED#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='rparen'>)</span>
@@ -526,17 +534,17 @@ secs, then pause for &#39;switched_off&#39; secs</p>
526
534
  <pre class="lines">
527
535
 
528
536
 
529
- 19
530
- 20
531
537
  21
532
538
  22
533
539
  23
534
540
  24
535
541
  25
536
- 26</pre>
542
+ 26
543
+ 27
544
+ 28</pre>
537
545
  </td>
538
546
  <td>
539
- <pre class="code"><span class="info file"># File 'lib/led.rb', line 19</span>
547
+ <pre class="code"><span class="info file"># File 'lib/led.rb', line 21</span>
540
548
 
541
549
  <span class='kw'>def</span> <span class='id identifier rubyid_blink'>blink</span><span class='lparen'>(</span><span class='id identifier rubyid_repeat'>repeat</span><span class='op'>=</span><span class='int'>3</span><span class='comma'>,</span> <span class='id identifier rubyid_switched_on'>switched_on</span><span class='op'>=</span><span class='float'>0.25</span><span class='comma'>,</span> <span class='id identifier rubyid_switched_off'>switched_off</span><span class='op'>=</span><span class='float'>0.5</span><span class='rparen'>)</span>
542
550
  <span class='id identifier rubyid_repeat'>repeat</span><span class='period'>.</span><span class='id identifier rubyid_times'>times</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span>
@@ -560,18 +568,29 @@ secs, then pause for &#39;switched_off&#39; secs</p>
560
568
 
561
569
 
562
570
 
563
- </h3><table class="source_code">
571
+ </h3><div class="docstring">
572
+ <div class="discussion">
573
+
574
+ <p>Turn off the LED.</p>
575
+
576
+
577
+ </div>
578
+ </div>
579
+ <div class="tags">
580
+
581
+
582
+ </div><table class="source_code">
564
583
  <tr>
565
584
  <td>
566
585
  <pre class="lines">
567
586
 
568
587
 
569
- 14
570
- 15
571
- 16</pre>
588
+ 16
589
+ 17
590
+ 18</pre>
572
591
  </td>
573
592
  <td>
574
- <pre class="code"><span class="info file"># File 'lib/led.rb', line 14</span>
593
+ <pre class="code"><span class="info file"># File 'lib/led.rb', line 16</span>
575
594
 
576
595
  <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>
577
596
  <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='rparen'>)</span>
@@ -590,20 +609,31 @@ secs, then pause for &#39;switched_off&#39; secs</p>
590
609
 
591
610
 
592
611
 
593
- </h3><table class="source_code">
612
+ </h3><div class="docstring">
613
+ <div class="discussion">
614
+
615
+ <p>Turn the LED off for N seconds.</p>
616
+
617
+
618
+ </div>
619
+ </div>
620
+ <div class="tags">
621
+
622
+
623
+ </div><table class="source_code">
594
624
  <tr>
595
625
  <td>
596
626
  <pre class="lines">
597
627
 
598
628
 
599
- 34
600
- 35
601
- 36
602
- 37
603
- 38</pre>
629
+ 38
630
+ 39
631
+ 40
632
+ 41
633
+ 42</pre>
604
634
  </td>
605
635
  <td>
606
- <pre class="code"><span class="info file"># File 'lib/led.rb', line 34</span>
636
+ <pre class="code"><span class="info file"># File 'lib/led.rb', line 38</span>
607
637
 
608
638
  <span class='kw'>def</span> <span class='id identifier rubyid_off_for'>off_for</span><span class='lparen'>(</span><span class='id identifier rubyid_seconds'>seconds</span><span class='op'>=</span><span class='int'>1</span><span class='rparen'>)</span>
609
639
  <span class='id identifier rubyid_off'>off</span>
@@ -624,18 +654,29 @@ secs, then pause for &#39;switched_off&#39; secs</p>
624
654
 
625
655
 
626
656
 
627
- </h3><table class="source_code">
657
+ </h3><div class="docstring">
658
+ <div class="discussion">
659
+
660
+ <p>Turn on the LED.</p>
661
+
662
+
663
+ </div>
664
+ </div>
665
+ <div class="tags">
666
+
667
+
668
+ </div><table class="source_code">
628
669
  <tr>
629
670
  <td>
630
671
  <pre class="lines">
631
672
 
632
673
 
633
- 10
634
674
  11
635
- 12</pre>
675
+ 12
676
+ 13</pre>
636
677
  </td>
637
678
  <td>
638
- <pre class="code"><span class="info file"># File 'lib/led.rb', line 10</span>
679
+ <pre class="code"><span class="info file"># File 'lib/led.rb', line 11</span>
639
680
 
640
681
  <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>
641
682
  <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='rparen'>)</span>
@@ -654,20 +695,31 @@ secs, then pause for &#39;switched_off&#39; secs</p>
654
695
 
655
696
 
656
697
 
657
- </h3><table class="source_code">
698
+ </h3><div class="docstring">
699
+ <div class="discussion">
700
+
701
+ <p>Turn the LED on for N seconds.</p>
702
+
703
+
704
+ </div>
705
+ </div>
706
+ <div class="tags">
707
+
708
+
709
+ </div><table class="source_code">
658
710
  <tr>
659
711
  <td>
660
712
  <pre class="lines">
661
713
 
662
714
 
663
- 28
664
- 29
665
- 30
666
715
  31
667
- 32</pre>
716
+ 32
717
+ 33
718
+ 34
719
+ 35</pre>
668
720
  </td>
669
721
  <td>
670
- <pre class="code"><span class="info file"># File 'lib/led.rb', line 28</span>
722
+ <pre class="code"><span class="info file"># File 'lib/led.rb', line 31</span>
671
723
 
672
724
  <span class='kw'>def</span> <span class='id identifier rubyid_on_for'>on_for</span><span class='lparen'>(</span><span class='id identifier rubyid_seconds'>seconds</span><span class='op'>=</span><span class='int'>1</span><span class='rparen'>)</span>
673
725
  <span class='id identifier rubyid_on'>on</span>
@@ -694,12 +746,12 @@ secs, then pause for &#39;switched_off&#39; secs</p>
694
746
  <pre class="lines">
695
747
 
696
748
 
697
- 47
698
- 48
699
- 49</pre>
749
+ 51
750
+ 52
751
+ 53</pre>
700
752
  </td>
701
753
  <td>
702
- <pre class="code"><span class="info file"># File 'lib/led.rb', line 47</span>
754
+ <pre class="code"><span class="info file"># File 'lib/led.rb', line 51</span>
703
755
 
704
756
  <span class='kw'>def</span> <span class='id identifier rubyid_включить'>включить</span>
705
757
  <span class='id identifier rubyid_on'>on</span>
@@ -724,12 +776,12 @@ secs, then pause for &#39;switched_off&#39; secs</p>
724
776
  <pre class="lines">
725
777
 
726
778
 
727
- 51
728
- 52
729
- 53</pre>
779
+ 55
780
+ 56
781
+ 57</pre>
730
782
  </td>
731
783
  <td>
732
- <pre class="code"><span class="info file"># File 'lib/led.rb', line 51</span>
784
+ <pre class="code"><span class="info file"># File 'lib/led.rb', line 55</span>
733
785
 
734
786
  <span class='kw'>def</span> <span class='id identifier rubyid_выключить'>выключить</span>
735
787
  <span class='id identifier rubyid_off'>off</span>
@@ -754,12 +806,12 @@ secs, then pause for &#39;switched_off&#39; secs</p>
754
806
  <pre class="lines">
755
807
 
756
808
 
757
- 55
758
- 56
759
- 57</pre>
809
+ 59
810
+ 60
811
+ 61</pre>
760
812
  </td>
761
813
  <td>
762
- <pre class="code"><span class="info file"># File 'lib/led.rb', line 55</span>
814
+ <pre class="code"><span class="info file"># File 'lib/led.rb', line 59</span>
763
815
 
764
816
  <span class='kw'>def</span> <span class='id identifier rubyid_мигать'>мигать</span><span class='lparen'>(</span><span class='id identifier rubyid_repeat'>repeat</span><span class='op'>=</span><span class='int'>3</span><span class='comma'>,</span> <span class='id identifier rubyid_switched_on'>switched_on</span><span class='op'>=</span><span class='float'>0.25</span><span class='comma'>,</span> <span class='id identifier rubyid_switched_off'>switched_off</span><span class='op'>=</span><span class='float'>0.5</span><span class='rparen'>)</span>
765
817
  <span class='id identifier rubyid_blink'>blink</span><span class='lparen'>(</span><span class='id identifier rubyid_repeat'>repeat</span><span class='comma'>,</span> <span class='id identifier rubyid_switched_on'>switched_on</span><span class='comma'>,</span> <span class='id identifier rubyid_switched_off'>switched_off</span><span class='rparen'>)</span>
@@ -774,7 +826,7 @@ secs, then pause for &#39;switched_off&#39; secs</p>
774
826
  </div>
775
827
 
776
828
  <div id="footer">
777
- Generated on Tue Dec 18 16:03:48 2018 by
829
+ Generated on Thu Dec 20 18:09:48 2018 by
778
830
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
779
831
  0.9.16 (ruby-2.3.3).
780
832
  </div>
data/doc/MAX44009.html CHANGED
@@ -820,7 +820,7 @@ applications</p>
820
820
  </div>
821
821
 
822
822
  <div id="footer">
823
- Generated on Tue Dec 18 16:03:49 2018 by
823
+ Generated on Thu Dec 20 18:09:50 2018 by
824
824
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
825
825
  0.9.16 (ruby-2.3.3).
826
826
  </div>
data/doc/RaspberryPi.html CHANGED
@@ -307,7 +307,7 @@ href="https://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board
307
307
  </div>
308
308
 
309
309
  <div id="footer">
310
- Generated on Tue Dec 18 16:03:39 2018 by
310
+ Generated on Thu Dec 20 18:09:39 2018 by
311
311
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
312
312
  0.9.16 (ruby-2.3.3).
313
313
  </div>
@@ -0,0 +1,115 @@
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
+ Module: RaspberryPiIoT
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 = "RaspberryPiIoT";
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 (R)</a> &raquo;
40
+
41
+
42
+ <span class="title">RaspberryPiIoT</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>Module: RaspberryPiIoT
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ <dl>
80
+ <dt>Defined in:</dt>
81
+ <dd>lib/raspberry_pi_iot.rb</dd>
82
+ </dl>
83
+
84
+ </div>
85
+
86
+ <h2>Defined Under Namespace</h2>
87
+ <p class="children">
88
+
89
+
90
+
91
+
92
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="RaspberryPiIoT/Error.html" title="RaspberryPiIoT::Error (class)">Error</a></span>
93
+
94
+
95
+ </p>
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+ </div>
106
+
107
+ <div id="footer">
108
+ Generated on Thu Dec 20 18:09:39 2018 by
109
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
+ 0.9.16 (ruby-2.3.3).
111
+ </div>
112
+
113
+ </div>
114
+ </body>
115
+ </html>
data/doc/Receptor.html CHANGED
@@ -247,7 +247,7 @@
247
247
  </div>
248
248
 
249
249
  <div id="footer">
250
- Generated on Tue Dec 18 16:03:49 2018 by
250
+ Generated on Thu Dec 20 18:09:50 2018 by
251
251
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
252
252
  0.9.16 (ruby-2.3.3).
253
253
  </div>
data/doc/Sensor.html CHANGED
@@ -135,7 +135,7 @@
135
135
  </div>
136
136
 
137
137
  <div id="footer">
138
- Generated on Tue Dec 18 16:03:49 2018 by
138
+ Generated on Thu Dec 20 18:09:50 2018 by
139
139
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
140
140
  0.9.16 (ruby-2.3.3).
141
141
  </div>
@@ -634,7 +634,7 @@
634
634
  </div>
635
635
 
636
636
  <div id="footer">
637
- Generated on Tue Dec 18 16:03:50 2018 by
637
+ Generated on Thu Dec 20 18:09:51 2018 by
638
638
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
639
639
  0.9.16 (ruby-2.3.3).
640
640
  </div>