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
data/doc/Button.html CHANGED
@@ -255,7 +255,7 @@
255
255
 
256
256
 
257
257
  <span class="summary_desc"><div class='inline'>
258
- <p>Is button not pressed?.</p>
258
+ <p>Is button not being pressed?.</p>
259
259
  </div></span>
260
260
 
261
261
  </li>
@@ -279,9 +279,31 @@
279
279
 
280
280
 
281
281
  <span class="summary_desc"><div class='inline'>
282
- <p>Is button pressed?.</p>
282
+ <p>Is button being pressed?.</p>
283
283
  </div></span>
284
284
 
285
+ </li>
286
+
287
+
288
+ <li class="public ">
289
+ <span class="summary_signature">
290
+
291
+ <a href="#set_timeout-instance_method" title="#set_timeout (instance method)">#<strong>set_timeout</strong>(timeout) &#x21d2; Object </a>
292
+
293
+
294
+
295
+ </span>
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+ <span class="summary_desc"><div class='inline'></div></span>
306
+
285
307
  </li>
286
308
 
287
309
 
@@ -306,6 +328,28 @@
306
328
  <p>Was the button pressed once?.</p>
307
329
  </div></span>
308
330
 
331
+ </li>
332
+
333
+
334
+ <li class="public ">
335
+ <span class="summary_signature">
336
+
337
+ <a href="#timeout%3F-instance_method" title="#timeout? (instance method)">#<strong>timeout?</strong> &#x21d2; Boolean </a>
338
+
339
+
340
+
341
+ </span>
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+ <span class="summary_desc"><div class='inline'></div></span>
352
+
309
353
  </li>
310
354
 
311
355
 
@@ -360,7 +404,7 @@
360
404
  <li class="public ">
361
405
  <span class="summary_signature">
362
406
 
363
- <a href="#wait_for_presses-instance_method" title="#wait_for_presses (instance method)">#<strong>wait_for_presses</strong>(attempts = 2) &#x21d2; Object </a>
407
+ <a href="#wait_for_presses-instance_method" title="#wait_for_presses (instance method)">#<strong>wait_for_presses</strong>(attempts = 2, timeout = @timeout) &#x21d2; Object </a>
364
408
 
365
409
 
366
410
 
@@ -378,6 +422,50 @@
378
422
  <p>Wait for several sequential presses.</p>
379
423
  </div></span>
380
424
 
425
+ </li>
426
+
427
+
428
+ <li class="public ">
429
+ <span class="summary_signature">
430
+
431
+ <a href="#was_not_pressed%3F-instance_method" title="#was_not_pressed? (instance method)">#<strong>was_not_pressed?</strong> &#x21d2; Boolean </a>
432
+
433
+
434
+
435
+ </span>
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+ <span class="summary_desc"><div class='inline'></div></span>
446
+
447
+ </li>
448
+
449
+
450
+ <li class="public ">
451
+ <span class="summary_signature">
452
+
453
+ <a href="#was_pressed%3F-instance_method" title="#was_pressed? (instance method)">#<strong>was_pressed?</strong> &#x21d2; Boolean </a>
454
+
455
+
456
+
457
+ </span>
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+ <span class="summary_desc"><div class='inline'></div></span>
468
+
381
469
  </li>
382
470
 
383
471
 
@@ -442,7 +530,11 @@
442
530
  11
443
531
  12
444
532
  13
445
- 14</pre>
533
+ 14
534
+ 15
535
+ 16
536
+ 17
537
+ 18</pre>
446
538
  </td>
447
539
  <td>
448
540
  <pre class="code"><span class="info file"># File 'lib/button.rb', line 7</span>
@@ -453,8 +545,12 @@
453
545
  <span class='ivar'>@measure_pause</span> <span class='op'>=</span> <span class='float'>0.01</span>
454
546
  <span class='ivar'>@long_click</span> <span class='op'>=</span> <span class='float'>1.0</span>
455
547
  <span class='ivar'>@short_interval</span> <span class='op'>=</span> <span class='float'>0.2</span>
548
+ <span class='ivar'>@timeout</span> <span class='op'>=</span> <span class='int'>30</span>
456
549
  <span class='ivar'>@intervals</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
457
- <span class='kw'>end</span></pre>
550
+ <span class='comment'># samples: wait time press time wait time press time
551
+ </span> <span class='comment'># double press: [[1.486804292, 0.090814152], [0.131284967, 0.13125429]]
552
+ </span> <span class='comment'># long press: [[0.910878286, 1.109352219]]
553
+ </span><span class='kw'>end</span></pre>
458
554
  </td>
459
555
  </tr>
460
556
  </table>
@@ -574,12 +670,12 @@
574
670
  <pre class="lines">
575
671
 
576
672
 
577
- 57
578
- 58
579
- 59</pre>
673
+ 69
674
+ 70
675
+ 71</pre>
580
676
  </td>
581
677
  <td>
582
- <pre class="code"><span class="info file"># File 'lib/button.rb', line 57</span>
678
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 69</span>
583
679
 
584
680
  <span class='kw'>def</span> <span class='id identifier rubyid_double_press?'>double_press?</span><span class='lparen'>(</span><span class='id identifier rubyid_intervals'>intervals</span><span class='op'>=</span><span class='ivar'>@intervals</span><span class='rparen'>)</span>
585
681
  <span class='id identifier rubyid_intervals'>intervals</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>2</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_intervals'>intervals</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>&lt;=</span> <span class='ivar'>@short_interval</span>
@@ -628,12 +724,12 @@
628
724
  <pre class="lines">
629
725
 
630
726
 
631
- 67
632
- 68
633
- 69</pre>
727
+ 79
728
+ 80
729
+ 81</pre>
634
730
  </td>
635
731
  <td>
636
- <pre class="code"><span class="info file"># File 'lib/button.rb', line 67</span>
732
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 79</span>
637
733
 
638
734
  <span class='kw'>def</span> <span class='id identifier rubyid_long_press?'>long_press?</span><span class='lparen'>(</span><span class='id identifier rubyid_intervals'>intervals</span><span class='op'>=</span><span class='ivar'>@intervals</span><span class='rparen'>)</span>
639
735
  <span class='id identifier rubyid_intervals'>intervals</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>1</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_intervals'>intervals</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='op'>&gt;=</span> <span class='ivar'>@long_click</span>
@@ -655,7 +751,7 @@
655
751
  </h3><div class="docstring">
656
752
  <div class="discussion">
657
753
 
658
- <p>Is button not pressed?</p>
754
+ <p>Is button not being pressed?</p>
659
755
 
660
756
 
661
757
  </div>
@@ -682,12 +778,12 @@
682
778
  <pre class="lines">
683
779
 
684
780
 
685
- 22
686
- 23
687
- 24</pre>
781
+ 26
782
+ 27
783
+ 28</pre>
688
784
  </td>
689
785
  <td>
690
- <pre class="code"><span class="info file"># File 'lib/button.rb', line 22</span>
786
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 26</span>
691
787
 
692
788
  <span class='kw'>def</span> <span class='id identifier rubyid_not_pressed?'>not_pressed?</span>
693
789
  <span class='id identifier rubyid_high?'>high?</span>
@@ -709,7 +805,7 @@
709
805
  </h3><div class="docstring">
710
806
  <div class="discussion">
711
807
 
712
- <p>Is button pressed?</p>
808
+ <p>Is button being pressed?</p>
713
809
 
714
810
 
715
811
  </div>
@@ -736,12 +832,12 @@
736
832
  <pre class="lines">
737
833
 
738
834
 
739
- 17
740
- 18
741
- 19</pre>
835
+ 21
836
+ 22
837
+ 23</pre>
742
838
  </td>
743
839
  <td>
744
- <pre class="code"><span class="info file"># File 'lib/button.rb', line 17</span>
840
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 21</span>
745
841
 
746
842
  <span class='kw'>def</span> <span class='id identifier rubyid_pressed?'>pressed?</span>
747
843
  <span class='id identifier rubyid_low?'>low?</span>
@@ -749,6 +845,36 @@
749
845
  </td>
750
846
  </tr>
751
847
  </table>
848
+ </div>
849
+
850
+ <div class="method_details ">
851
+ <h3 class="signature " id="set_timeout-instance_method">
852
+
853
+ #<strong>set_timeout</strong>(timeout) &#x21d2; <tt>Object</tt>
854
+
855
+
856
+
857
+
858
+
859
+ </h3><table class="source_code">
860
+ <tr>
861
+ <td>
862
+ <pre class="lines">
863
+
864
+
865
+ 83
866
+ 84
867
+ 85</pre>
868
+ </td>
869
+ <td>
870
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 83</span>
871
+
872
+ <span class='kw'>def</span> <span class='id identifier rubyid_set_timeout'>set_timeout</span><span class='lparen'>(</span><span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
873
+ <span class='ivar'>@timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span>
874
+ <span class='kw'>end</span></pre>
875
+ </td>
876
+ </tr>
877
+ </table>
752
878
  </div>
753
879
 
754
880
  <div class="method_details ">
@@ -790,12 +916,12 @@
790
916
  <pre class="lines">
791
917
 
792
918
 
793
- 52
794
- 53
795
- 54</pre>
919
+ 64
920
+ 65
921
+ 66</pre>
796
922
  </td>
797
923
  <td>
798
- <pre class="code"><span class="info file"># File 'lib/button.rb', line 52</span>
924
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 64</span>
799
925
 
800
926
  <span class='kw'>def</span> <span class='id identifier rubyid_single_press?'>single_press?</span><span class='lparen'>(</span><span class='id identifier rubyid_intervals'>intervals</span><span class='op'>=</span><span class='ivar'>@intervals</span><span class='rparen'>)</span>
801
927
  <span class='id identifier rubyid_intervals'>intervals</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>1</span>
@@ -803,6 +929,66 @@
803
929
  </td>
804
930
  </tr>
805
931
  </table>
932
+ </div>
933
+
934
+ <div class="method_details ">
935
+ <h3 class="signature " id="timeout?-instance_method">
936
+
937
+ #<strong>timeout?</strong> &#x21d2; <tt>Boolean</tt>
938
+
939
+
940
+
941
+
942
+
943
+ </h3><div class="docstring">
944
+ <div class="discussion">
945
+
946
+
947
+ </div>
948
+ </div>
949
+ <div class="tags">
950
+
951
+ <p class="tag_title">Returns:</p>
952
+ <ul class="return">
953
+
954
+ <li>
955
+
956
+
957
+ <span class='type'>(<tt>Boolean</tt>)</span>
958
+
959
+
960
+
961
+ </li>
962
+
963
+ </ul>
964
+
965
+ </div><table class="source_code">
966
+ <tr>
967
+ <td>
968
+ <pre class="lines">
969
+
970
+
971
+ 87
972
+ 88
973
+ 89
974
+ 90
975
+ 91
976
+ 92
977
+ 93</pre>
978
+ </td>
979
+ <td>
980
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 87</span>
981
+
982
+ <span class='kw'>def</span> <span class='id identifier rubyid_timeout?'>timeout?</span>
983
+ <span class='id identifier rubyid_min_wait_time'>min_wait_time</span> <span class='op'>=</span> <span class='float'>0.0</span>
984
+ <span class='ivar'>@intervals</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_interval'>interval</span><span class='op'>|</span>
985
+ <span class='id identifier rubyid_min_wait_time'>min_wait_time</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_min_wait_time'>min_wait_time</span><span class='comma'>,</span> <span class='id identifier rubyid_interval'>interval</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_min'>min</span>
986
+ <span class='kw'>end</span>
987
+ <span class='id identifier rubyid_min_wait_time'>min_wait_time</span> <span class='op'>&gt;</span> <span class='ivar'>@timeout</span>
988
+ <span class='kw'>end</span></pre>
989
+ </td>
990
+ </tr>
991
+ </table>
806
992
  </div>
807
993
 
808
994
  <div class="method_details ">
@@ -844,12 +1030,12 @@
844
1030
  <pre class="lines">
845
1031
 
846
1032
 
847
- 62
848
- 63
849
- 64</pre>
1033
+ 74
1034
+ 75
1035
+ 76</pre>
850
1036
  </td>
851
1037
  <td>
852
- <pre class="code"><span class="info file"># File 'lib/button.rb', line 62</span>
1038
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 74</span>
853
1039
 
854
1040
  <span class='kw'>def</span> <span class='id identifier rubyid_triple_press?'>triple_press?</span><span class='lparen'>(</span><span class='id identifier rubyid_intervals'>intervals</span><span class='op'>=</span><span class='ivar'>@intervals</span><span class='rparen'>)</span>
855
1041
  <span class='id identifier rubyid_intervals'>intervals</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>3</span>
@@ -885,12 +1071,12 @@
885
1071
  <pre class="lines">
886
1072
 
887
1073
 
888
- 27
889
- 28
890
- 29</pre>
1074
+ 39
1075
+ 40
1076
+ 41</pre>
891
1077
  </td>
892
1078
  <td>
893
- <pre class="code"><span class="info file"># File 'lib/button.rb', line 27</span>
1079
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 39</span>
894
1080
 
895
1081
  <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_press'>wait_for_press</span>
896
1082
  <span class='id identifier rubyid_wait_for_presses'>wait_for_presses</span><span class='lparen'>(</span><span class='int'>1</span><span class='rparen'>)</span>
@@ -903,7 +1089,7 @@
903
1089
  <div class="method_details ">
904
1090
  <h3 class="signature " id="wait_for_presses-instance_method">
905
1091
 
906
- #<strong>wait_for_presses</strong>(attempts = 2) &#x21d2; <tt>Object</tt>
1092
+ #<strong>wait_for_presses</strong>(attempts = 2, timeout = @timeout) &#x21d2; <tt>Object</tt>
907
1093
 
908
1094
 
909
1095
 
@@ -926,34 +1112,34 @@
926
1112
  <pre class="lines">
927
1113
 
928
1114
 
929
- 32
930
- 33
931
- 34
932
- 35
933
- 36
934
- 37
935
- 38
936
- 39
937
- 40
938
- 41
939
- 42
940
- 43
941
1115
  44
942
1116
  45
943
1117
  46
944
1118
  47
945
1119
  48
946
- 49</pre>
1120
+ 49
1121
+ 50
1122
+ 51
1123
+ 52
1124
+ 53
1125
+ 54
1126
+ 55
1127
+ 56
1128
+ 57
1129
+ 58
1130
+ 59
1131
+ 60
1132
+ 61</pre>
947
1133
  </td>
948
1134
  <td>
949
- <pre class="code"><span class="info file"># File 'lib/button.rb', line 32</span>
1135
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 44</span>
950
1136
 
951
- <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_presses'>wait_for_presses</span><span class='lparen'>(</span><span class='id identifier rubyid_attempts'>attempts</span><span class='op'>=</span><span class='int'>2</span><span class='rparen'>)</span>
1137
+ <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_presses'>wait_for_presses</span><span class='lparen'>(</span><span class='id identifier rubyid_attempts'>attempts</span><span class='op'>=</span><span class='int'>2</span><span class='comma'>,</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='op'>=</span><span class='ivar'>@timeout</span><span class='rparen'>)</span>
952
1138
  <span class='ivar'>@intervals</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
953
1139
  <span class='id identifier rubyid_attempts'>attempts</span><span class='period'>.</span><span class='id identifier rubyid_times'>times</span> <span class='kw'>do</span>
954
1140
  <span class='id identifier rubyid_interval'>interval</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
955
1141
  <span class='id identifier rubyid_timer'>timer</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
956
- <span class='kw'>while</span> <span class='id identifier rubyid_not_pressed?'>not_pressed?</span> <span class='kw'>do</span>
1142
+ <span class='kw'>while</span> <span class='id identifier rubyid_not_pressed?'>not_pressed?</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='op'>-</span><span class='id identifier rubyid_timer'>timer</span><span class='rparen'>)</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_timeout'>timeout</span> <span class='kw'>do</span>
957
1143
  <span class='id identifier rubyid_sleep'>sleep</span> <span class='ivar'>@measure_pause</span>
958
1144
  <span class='kw'>end</span>
959
1145
  <span class='id identifier rubyid_interval'>interval</span> <span class='op'>&lt;&lt;</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='op'>-</span><span class='id identifier rubyid_timer'>timer</span>
@@ -969,6 +1155,110 @@
969
1155
  </td>
970
1156
  </tr>
971
1157
  </table>
1158
+ </div>
1159
+
1160
+ <div class="method_details ">
1161
+ <h3 class="signature " id="was_not_pressed?-instance_method">
1162
+
1163
+ #<strong>was_not_pressed?</strong> &#x21d2; <tt>Boolean</tt>
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+ </h3><div class="docstring">
1170
+ <div class="discussion">
1171
+
1172
+
1173
+ </div>
1174
+ </div>
1175
+ <div class="tags">
1176
+
1177
+ <p class="tag_title">Returns:</p>
1178
+ <ul class="return">
1179
+
1180
+ <li>
1181
+
1182
+
1183
+ <span class='type'>(<tt>Boolean</tt>)</span>
1184
+
1185
+
1186
+
1187
+ </li>
1188
+
1189
+ </ul>
1190
+
1191
+ </div><table class="source_code">
1192
+ <tr>
1193
+ <td>
1194
+ <pre class="lines">
1195
+
1196
+
1197
+ 34
1198
+ 35
1199
+ 36</pre>
1200
+ </td>
1201
+ <td>
1202
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 34</span>
1203
+
1204
+ <span class='kw'>def</span> <span class='id identifier rubyid_was_not_pressed?'>was_not_pressed?</span>
1205
+ <span class='op'>!</span><span class='id identifier rubyid_was_pressed?'>was_pressed?</span>
1206
+ <span class='kw'>end</span></pre>
1207
+ </td>
1208
+ </tr>
1209
+ </table>
1210
+ </div>
1211
+
1212
+ <div class="method_details ">
1213
+ <h3 class="signature " id="was_pressed?-instance_method">
1214
+
1215
+ #<strong>was_pressed?</strong> &#x21d2; <tt>Boolean</tt>
1216
+
1217
+
1218
+
1219
+
1220
+
1221
+ </h3><div class="docstring">
1222
+ <div class="discussion">
1223
+
1224
+
1225
+ </div>
1226
+ </div>
1227
+ <div class="tags">
1228
+
1229
+ <p class="tag_title">Returns:</p>
1230
+ <ul class="return">
1231
+
1232
+ <li>
1233
+
1234
+
1235
+ <span class='type'>(<tt>Boolean</tt>)</span>
1236
+
1237
+
1238
+
1239
+ </li>
1240
+
1241
+ </ul>
1242
+
1243
+ </div><table class="source_code">
1244
+ <tr>
1245
+ <td>
1246
+ <pre class="lines">
1247
+
1248
+
1249
+ 30
1250
+ 31
1251
+ 32</pre>
1252
+ </td>
1253
+ <td>
1254
+ <pre class="code"><span class="info file"># File 'lib/button.rb', line 30</span>
1255
+
1256
+ <span class='kw'>def</span> <span class='id identifier rubyid_was_pressed?'>was_pressed?</span>
1257
+ <span class='ivar'>@intervals</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>&gt;</span> <span class='int'>0</span>
1258
+ <span class='kw'>end</span></pre>
1259
+ </td>
1260
+ </tr>
1261
+ </table>
972
1262
  </div>
973
1263
 
974
1264
  </div>
@@ -976,7 +1266,7 @@
976
1266
  </div>
977
1267
 
978
1268
  <div id="footer">
979
- Generated on Tue Dec 18 16:03:42 2018 by
1269
+ Generated on Thu Dec 20 18:09:42 2018 by
980
1270
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
981
1271
  0.9.16 (ruby-2.3.3).
982
1272
  </div>
data/doc/DHT11.html CHANGED
@@ -277,7 +277,7 @@
277
277
  </div>
278
278
 
279
279
  <div id="footer">
280
- Generated on Tue Dec 18 16:03:44 2018 by
280
+ Generated on Thu Dec 20 18:09:43 2018 by
281
281
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
282
282
  0.9.16 (ruby-2.3.3).
283
283
  </div>
data/doc/DHT22.html CHANGED
@@ -277,7 +277,7 @@
277
277
  </div>
278
278
 
279
279
  <div id="footer">
280
- Generated on Tue Dec 18 16:03:45 2018 by
280
+ Generated on Thu Dec 20 18:09:44 2018 by
281
281
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
282
282
  0.9.16 (ruby-2.3.3).
283
283
  </div>
data/doc/DHTxxSensor.html CHANGED
@@ -351,7 +351,7 @@
351
351
  </div>
352
352
 
353
353
  <div id="footer">
354
- Generated on Tue Dec 18 16:03:43 2018 by
354
+ Generated on Thu Dec 20 18:09:43 2018 by
355
355
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
356
356
  0.9.16 (ruby-2.3.3).
357
357
  </div>
data/doc/DS18B20.html CHANGED
@@ -329,7 +329,7 @@
329
329
  </div>
330
330
 
331
331
  <div id="footer">
332
- Generated on Tue Dec 18 16:03:46 2018 by
332
+ Generated on Thu Dec 20 18:09:46 2018 by
333
333
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
334
334
  0.9.16 (ruby-2.3.3).
335
335
  </div>
@@ -154,7 +154,7 @@
154
154
  </div>
155
155
 
156
156
  <div id="footer">
157
- Generated on Tue Dec 18 16:03:45 2018 by
157
+ Generated on Thu Dec 20 18:09:45 2018 by
158
158
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
159
159
  0.9.16 (ruby-2.3.3).
160
160
  </div>