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.
- checksums.yaml +4 -4
- data/doc/IoT.html +6 -4
- data/doc/RaspberryPiIoT.html +16 -10
- data/doc/_index.html +197 -21
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +15 -6
- data/doc/index.html +15 -6
- data/doc/method_list.html +590 -30
- data/doc/top-level-namespace.html +2 -2
- data/lib/iot/bh1750.rb +6 -4
- data/lib/iot/receptor.rb +6 -0
- data/lib/raspberry_pi.rb +1 -1
- data/lib/raspberry_pi_iot/version.rb +1 -1
- data/test/test.sh +5 -0
- data/test/test.txt +52 -169
- data/test/test_bh1750.rb +5 -0
- data/test/test_ky008.rb +41 -0
- metadata +2 -29
- data/doc/Actuator.html +0 -145
- data/doc/BH1750.html +0 -541
- data/doc/BME280.html +0 -276
- data/doc/BMP280.html +0 -276
- data/doc/BMxSensor.html +0 -557
- data/doc/BinaryActuator.html +0 -177
- data/doc/BinaryEffector.html +0 -246
- data/doc/BinaryReceptor.html +0 -387
- data/doc/BinarySensor.html +0 -168
- data/doc/Bus.html +0 -126
- data/doc/Button.html +0 -1276
- data/doc/DHT11.html +0 -287
- data/doc/DHT22.html +0 -287
- data/doc/DHTxxSensor.html +0 -361
- data/doc/DS18B20.html +0 -339
- data/doc/DigitalActuator.html +0 -164
- data/doc/DigitalEffector.html +0 -624
- data/doc/DigitalReceptor.html +0 -242
- data/doc/DigitalSensor.html +0 -162
- data/doc/Effector.html +0 -257
- data/doc/HCSR501.html +0 -172
- data/doc/HumitureSensor.html +0 -453
- data/doc/LED.html +0 -836
- data/doc/MAX44009.html +0 -830
- data/doc/RaspberryPi.html +0 -544
- data/doc/Receptor.html +0 -257
- data/doc/Sensor.html +0 -145
- data/doc/TemperatureSensor.html +0 -644
data/doc/BinaryActuator.html
DELETED
@@ -1,177 +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: BinaryActuator
|
8
|
-
|
9
|
-
— 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 = "BinaryActuator";
|
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 (B)</a> »
|
40
|
-
|
41
|
-
|
42
|
-
<span class="title">BinaryActuator</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: BinaryActuator
|
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="BinaryEffector.html" title="BinaryEffector (class)">BinaryEffector</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"><span class='object_link'><a href="BinaryEffector.html" title="BinaryEffector (class)">BinaryEffector</a></span></li>
|
82
|
-
|
83
|
-
<li class="next">BinaryActuator</li>
|
84
|
-
|
85
|
-
</ul>
|
86
|
-
<a href="#" class="inheritanceTree">show all</a>
|
87
|
-
|
88
|
-
</dd>
|
89
|
-
</dl>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
<dl>
|
102
|
-
<dt>Defined in:</dt>
|
103
|
-
<dd>lib/binary_actuator.rb</dd>
|
104
|
-
</dl>
|
105
|
-
|
106
|
-
</div>
|
107
|
-
|
108
|
-
<h2>Overview</h2><div class="docstring">
|
109
|
-
<div class="discussion">
|
110
|
-
|
111
|
-
<p>BinaryActuator - a synomym for BinaryEffector</p>
|
112
|
-
|
113
|
-
|
114
|
-
</div>
|
115
|
-
</div>
|
116
|
-
<div class="tags">
|
117
|
-
|
118
|
-
|
119
|
-
</div>
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
<h2>Method Summary</h2>
|
134
|
-
|
135
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="BinaryEffector.html" title="BinaryEffector (class)">BinaryEffector</a></span></h3>
|
136
|
-
<p class="inherited"><span class='object_link'><a href="BinaryEffector.html#initialize-instance_method" title="BinaryEffector#initialize (method)">#initialize</a></span></p>
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="DigitalEffector.html" title="DigitalEffector (class)">DigitalEffector</a></span></h3>
|
147
|
-
<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>
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Effector.html" title="Effector (class)">Effector</a></span></h3>
|
158
|
-
<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>
|
159
|
-
<div id="constructor_details" class="method_details_list">
|
160
|
-
<h2>Constructor Details</h2>
|
161
|
-
|
162
|
-
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="BinaryEffector.html#initialize-instance_method" title="BinaryEffector#initialize (method)">BinaryEffector</a></span></p>
|
163
|
-
|
164
|
-
</div>
|
165
|
-
|
166
|
-
|
167
|
-
</div>
|
168
|
-
|
169
|
-
<div id="footer">
|
170
|
-
Generated on Wed Dec 26 18:10:01 2018 by
|
171
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
172
|
-
0.9.16 (ruby-2.3.3).
|
173
|
-
</div>
|
174
|
-
|
175
|
-
</div>
|
176
|
-
</body>
|
177
|
-
</html>
|
data/doc/BinaryEffector.html
DELETED
@@ -1,246 +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: BinaryEffector
|
8
|
-
|
9
|
-
— 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 = "BinaryEffector";
|
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 (B)</a> »
|
40
|
-
|
41
|
-
|
42
|
-
<span class="title">BinaryEffector</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: BinaryEffector
|
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">BinaryEffector</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/binary_effector.rb</dd>
|
102
|
-
</dl>
|
103
|
-
|
104
|
-
</div>
|
105
|
-
|
106
|
-
<h2>Overview</h2><div class="docstring">
|
107
|
-
<div class="discussion">
|
108
|
-
|
109
|
-
<p>BinaryEffector - effector with binary logic</p>
|
110
|
-
|
111
|
-
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
<div class="tags">
|
115
|
-
|
116
|
-
|
117
|
-
</div><div id="subclasses">
|
118
|
-
<h2>Direct Known Subclasses</h2>
|
119
|
-
<p class="children"><span class='object_link'><a href="BinaryActuator.html" title="BinaryActuator (class)">BinaryActuator</a></span>, <span class='object_link'><a href="LED.html" title="LED (class)">LED</a></span></p>
|
120
|
-
</div>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
<h2>
|
130
|
-
Instance Method Summary
|
131
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
132
|
-
</h2>
|
133
|
-
|
134
|
-
<ul class="summary">
|
135
|
-
|
136
|
-
<li class="public ">
|
137
|
-
<span class="summary_signature">
|
138
|
-
|
139
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(pin = 25, state = :low) ⇒ BinaryEffector </a>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
</span>
|
144
|
-
|
145
|
-
|
146
|
-
<span class="note title constructor">constructor</span>
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
<span class="summary_desc"><div class='inline'>
|
156
|
-
<p>A new instance of BinaryEffector.</p>
|
157
|
-
</div></span>
|
158
|
-
|
159
|
-
</li>
|
160
|
-
|
161
|
-
|
162
|
-
</ul>
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="DigitalEffector.html" title="DigitalEffector (class)">DigitalEffector</a></span></h3>
|
175
|
-
<p class="inherited"><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>
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Effector.html" title="Effector (class)">Effector</a></span></h3>
|
186
|
-
<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>
|
187
|
-
<div id="constructor_details" class="method_details_list">
|
188
|
-
<h2>Constructor Details</h2>
|
189
|
-
|
190
|
-
<div class="method_details first">
|
191
|
-
<h3 class="signature first" id="initialize-instance_method">
|
192
|
-
|
193
|
-
#<strong>initialize</strong>(pin = 25, state = :low) ⇒ <tt><span class='object_link'><a href="" title="BinaryEffector (class)">BinaryEffector</a></span></tt>
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
</h3><div class="docstring">
|
200
|
-
<div class="discussion">
|
201
|
-
|
202
|
-
<p>Returns a new instance of BinaryEffector</p>
|
203
|
-
|
204
|
-
|
205
|
-
</div>
|
206
|
-
</div>
|
207
|
-
<div class="tags">
|
208
|
-
|
209
|
-
|
210
|
-
</div><table class="source_code">
|
211
|
-
<tr>
|
212
|
-
<td>
|
213
|
-
<pre class="lines">
|
214
|
-
|
215
|
-
|
216
|
-
7
|
217
|
-
8
|
218
|
-
9
|
219
|
-
10</pre>
|
220
|
-
</td>
|
221
|
-
<td>
|
222
|
-
<pre class="code"><span class="info file"># File 'lib/binary_effector.rb', line 7</span>
|
223
|
-
|
224
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='op'>=</span><span class='int'>25</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>
|
225
|
-
<span class='kw'>super</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:pin</span> <span class='op'>=></span> <span class='id identifier rubyid_pin'>pin</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='symbol'>:low</span><span class='rparen'>)</span>
|
226
|
-
<span class='ivar'>@pin</span> <span class='op'>=</span> <span class='id identifier rubyid_pin'>pin</span>
|
227
|
-
<span class='kw'>end</span></pre>
|
228
|
-
</td>
|
229
|
-
</tr>
|
230
|
-
</table>
|
231
|
-
</div>
|
232
|
-
|
233
|
-
</div>
|
234
|
-
|
235
|
-
|
236
|
-
</div>
|
237
|
-
|
238
|
-
<div id="footer">
|
239
|
-
Generated on Wed Dec 26 18:10:02 2018 by
|
240
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
241
|
-
0.9.16 (ruby-2.3.3).
|
242
|
-
</div>
|
243
|
-
|
244
|
-
</div>
|
245
|
-
</body>
|
246
|
-
</html>
|
data/doc/BinaryReceptor.html
DELETED
@@ -1,387 +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: BinaryReceptor
|
8
|
-
|
9
|
-
— 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 = "BinaryReceptor";
|
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 (B)</a> »
|
40
|
-
|
41
|
-
|
42
|
-
<span class="title">BinaryReceptor</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: BinaryReceptor
|
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="Receptor.html" title="Receptor (class)">Receptor</a></span></span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next"><span class='object_link'><a href="Receptor.html" title="Receptor (class)">Receptor</a></span></li>
|
78
|
-
|
79
|
-
<li class="next">BinaryReceptor</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/binary_receptor.rb</dd>
|
100
|
-
</dl>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
<h2>Overview</h2><div class="docstring">
|
105
|
-
<div class="discussion">
|
106
|
-
|
107
|
-
<p>BinaryReceptor - receptor/actuator with binary logic</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="BinarySensor.html" title="BinarySensor (class)">BinarySensor</a></span>, <span class='object_link'><a href="Button.html" title="Button (class)">Button</a></span></p>
|
118
|
-
</div>
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
<h2>
|
128
|
-
Instance 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="#high%3F-instance_method" title="#high? (instance method)">#<strong>high?</strong> ⇒ Boolean </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="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(pin = 21, pull = :up) ⇒ BinaryReceptor </a>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
</span>
|
164
|
-
|
165
|
-
|
166
|
-
<span class="note title constructor">constructor</span>
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<span class="summary_desc"><div class='inline'>
|
176
|
-
<p>A new instance of BinaryReceptor.</p>
|
177
|
-
</div></span>
|
178
|
-
|
179
|
-
</li>
|
180
|
-
|
181
|
-
|
182
|
-
<li class="public ">
|
183
|
-
<span class="summary_signature">
|
184
|
-
|
185
|
-
<a href="#low%3F-instance_method" title="#low? (instance method)">#<strong>low?</strong> ⇒ Boolean </a>
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
</span>
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
200
|
-
|
201
|
-
</li>
|
202
|
-
|
203
|
-
|
204
|
-
</ul>
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Receptor.html" title="Receptor (class)">Receptor</a></span></h3>
|
217
|
-
<p class="inherited"><span class='object_link'><a href="Receptor.html#model_name-instance_method" title="Receptor#model_name (method)">#model_name</a></span>, <span class='object_link'><a href="Receptor.html#name-instance_method" title="Receptor#name (method)">#name</a></span></p>
|
218
|
-
<div id="constructor_details" class="method_details_list">
|
219
|
-
<h2>Constructor Details</h2>
|
220
|
-
|
221
|
-
<div class="method_details first">
|
222
|
-
<h3 class="signature first" id="initialize-instance_method">
|
223
|
-
|
224
|
-
#<strong>initialize</strong>(pin = 21, pull = :up) ⇒ <tt><span class='object_link'><a href="" title="BinaryReceptor (class)">BinaryReceptor</a></span></tt>
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
</h3><div class="docstring">
|
231
|
-
<div class="discussion">
|
232
|
-
|
233
|
-
<p>Returns a new instance of BinaryReceptor</p>
|
234
|
-
|
235
|
-
|
236
|
-
</div>
|
237
|
-
</div>
|
238
|
-
<div class="tags">
|
239
|
-
|
240
|
-
|
241
|
-
</div><table class="source_code">
|
242
|
-
<tr>
|
243
|
-
<td>
|
244
|
-
<pre class="lines">
|
245
|
-
|
246
|
-
|
247
|
-
7
|
248
|
-
8
|
249
|
-
9
|
250
|
-
10</pre>
|
251
|
-
</td>
|
252
|
-
<td>
|
253
|
-
<pre class="code"><span class="info file"># File 'lib/binary_receptor.rb', line 7</span>
|
254
|
-
|
255
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='op'>=</span><span class='int'>21</span><span class='comma'>,</span> <span class='id identifier rubyid_pull'>pull</span><span class='op'>=</span><span class='symbol'>:up</span><span class='rparen'>)</span>
|
256
|
-
<span class='ivar'>@pin</span> <span class='op'>=</span> <span class='id identifier rubyid_pin'>pin</span>
|
257
|
-
<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'>=></span> <span class='symbol'>:input</span><span class='comma'>,</span> <span class='symbol'>:pull</span> <span class='op'>=></span> <span class='id identifier rubyid_pull'>pull</span>
|
258
|
-
<span class='kw'>end</span></pre>
|
259
|
-
</td>
|
260
|
-
</tr>
|
261
|
-
</table>
|
262
|
-
</div>
|
263
|
-
|
264
|
-
</div>
|
265
|
-
|
266
|
-
|
267
|
-
<div id="instance_method_details" class="method_details_list">
|
268
|
-
<h2>Instance Method Details</h2>
|
269
|
-
|
270
|
-
|
271
|
-
<div class="method_details first">
|
272
|
-
<h3 class="signature first" id="high?-instance_method">
|
273
|
-
|
274
|
-
#<strong>high?</strong> ⇒ <tt>Boolean</tt>
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
</h3><div class="docstring">
|
281
|
-
<div class="discussion">
|
282
|
-
|
283
|
-
|
284
|
-
</div>
|
285
|
-
</div>
|
286
|
-
<div class="tags">
|
287
|
-
|
288
|
-
<p class="tag_title">Returns:</p>
|
289
|
-
<ul class="return">
|
290
|
-
|
291
|
-
<li>
|
292
|
-
|
293
|
-
|
294
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
</li>
|
299
|
-
|
300
|
-
</ul>
|
301
|
-
|
302
|
-
</div><table class="source_code">
|
303
|
-
<tr>
|
304
|
-
<td>
|
305
|
-
<pre class="lines">
|
306
|
-
|
307
|
-
|
308
|
-
12
|
309
|
-
13
|
310
|
-
14</pre>
|
311
|
-
</td>
|
312
|
-
<td>
|
313
|
-
<pre class="code"><span class="info file"># File 'lib/binary_receptor.rb', line 12</span>
|
314
|
-
|
315
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_high?'>high?</span>
|
316
|
-
<span class='const'>RPi</span><span class='op'>::</span><span class='const'>GPIO</span><span class='period'>.</span><span class='id identifier rubyid_high?'>high?</span> <span class='ivar'>@pin</span>
|
317
|
-
<span class='kw'>end</span></pre>
|
318
|
-
</td>
|
319
|
-
</tr>
|
320
|
-
</table>
|
321
|
-
</div>
|
322
|
-
|
323
|
-
<div class="method_details ">
|
324
|
-
<h3 class="signature " id="low?-instance_method">
|
325
|
-
|
326
|
-
#<strong>low?</strong> ⇒ <tt>Boolean</tt>
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
</h3><div class="docstring">
|
333
|
-
<div class="discussion">
|
334
|
-
|
335
|
-
|
336
|
-
</div>
|
337
|
-
</div>
|
338
|
-
<div class="tags">
|
339
|
-
|
340
|
-
<p class="tag_title">Returns:</p>
|
341
|
-
<ul class="return">
|
342
|
-
|
343
|
-
<li>
|
344
|
-
|
345
|
-
|
346
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
</li>
|
351
|
-
|
352
|
-
</ul>
|
353
|
-
|
354
|
-
</div><table class="source_code">
|
355
|
-
<tr>
|
356
|
-
<td>
|
357
|
-
<pre class="lines">
|
358
|
-
|
359
|
-
|
360
|
-
16
|
361
|
-
17
|
362
|
-
18</pre>
|
363
|
-
</td>
|
364
|
-
<td>
|
365
|
-
<pre class="code"><span class="info file"># File 'lib/binary_receptor.rb', line 16</span>
|
366
|
-
|
367
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_low?'>low?</span>
|
368
|
-
<span class='const'>RPi</span><span class='op'>::</span><span class='const'>GPIO</span><span class='period'>.</span><span class='id identifier rubyid_low?'>low?</span> <span class='ivar'>@pin</span>
|
369
|
-
<span class='kw'>end</span></pre>
|
370
|
-
</td>
|
371
|
-
</tr>
|
372
|
-
</table>
|
373
|
-
</div>
|
374
|
-
|
375
|
-
</div>
|
376
|
-
|
377
|
-
</div>
|
378
|
-
|
379
|
-
<div id="footer">
|
380
|
-
Generated on Wed Dec 26 18:10:02 2018 by
|
381
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
382
|
-
0.9.16 (ruby-2.3.3).
|
383
|
-
</div>
|
384
|
-
|
385
|
-
</div>
|
386
|
-
</body>
|
387
|
-
</html>
|