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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa003e1dc6826a7a5898575780c12ecc524f2c9faa2dd25cac3f01de9c0f6690
4
- data.tar.gz: '059edc5fff44690842465e01441e22d3937f3af45117998487c4d93e6664dca7'
3
+ metadata.gz: 0da6ef9dd8961e89d14c2a496ca657d5106c4e6f22b16d97d5c437970ade3428
4
+ data.tar.gz: d95ce0c9b9bb6f67e90c54d1ec7c4841533fab99b393458c8f062d3704bf04a1
5
5
  SHA512:
6
- metadata.gz: d17de347d87b14c7d380bbe8b073dab5ec18d2ed9ef4822456cfbe6a7ae260f3932703c9fc518e0ed2560757e10e05567954bffb716ddc64c043c5a742e6152b
7
- data.tar.gz: 7b3d017d8ac78871721056667ba619d5abfeb2c784fcac217b70c7f468261b6eab9440e1588bf894175ec585aa5966b74e1f465a7238d37eeebb0dac9ab5ba39
6
+ metadata.gz: 1adf836baae299b5a5e8dfb237830b8319d88569c418d11c61fa69ddddd058ab5345f10848992fc5f99746ed8d80f3c78e2d458e02c3919de04f590f50adecfd
7
+ data.tar.gz: 10f2d1cee25f5fdf96cc117e33cd18fb910b19058871a53dbdc41a6cd6182e379444af6bed579058ac7c774a678b70d488c2154be786f3030e3b51574449920a
@@ -78,7 +78,9 @@
78
78
 
79
79
  <dl>
80
80
  <dt>Defined in:</dt>
81
- <dd>lib/iot.rb</dd>
81
+ <dd>lib/iot/ds18b20.rb<span class="defines">,<br />
82
+ lib/iot/actuator.rb,<br /> lib/iot/bh1750.rb,<br /> lib/iot/binary_actuator.rb,<br /> lib/iot/binary_effector.rb,<br /> lib/iot/binary_receptor.rb,<br /> lib/iot/binary_sensor.rb,<br /> lib/iot/bmx_sensor.rb,<br /> lib/iot/button.rb,<br /> lib/iot/dht_sensor.rb,<br /> lib/iot/digital_actuator.rb,<br /> lib/iot/digital_effector.rb,<br /> lib/iot/digital_receptor.rb,<br /> lib/iot/digital_sensor.rb,<br /> lib/iot/effector.rb,<br /> lib/iot/hcsr501.rb,<br /> lib/iot/humiture_sensor.rb,<br /> lib/iot/led_pwm.rb,<br /> lib/iot/led.rb,<br /> lib/iot/led_rgb.rb,<br /> lib/iot/max44009.rb,<br /> lib/iot/receptor.rb,<br /> lib/iot/sensor.rb,<br /> lib/iot/temperature_sensor.rb</span>
83
+ </dd>
82
84
  </dl>
83
85
 
84
86
  </div>
@@ -86,7 +88,7 @@
86
88
  <h2>Overview</h2><div class="docstring">
87
89
  <div class="discussion">
88
90
 
89
- <p>IoT - Internet of Things classes and modules</p>
91
+ <p>DS18B20 - high precision temperature sensor with 1-wire interface</p>
90
92
 
91
93
 
92
94
  </div>
@@ -100,7 +102,7 @@
100
102
 
101
103
 
102
104
 
103
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="IoT/Log.html" title="IoT::Log (class)">Log</a></span>
105
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="IoT/Actuator.html" title="IoT::Actuator (class)">Actuator</a></span>, <span class='object_link'><a href="IoT/BH1750.html" title="IoT::BH1750 (class)">BH1750</a></span>, <span class='object_link'><a href="IoT/BME280.html" title="IoT::BME280 (class)">BME280</a></span>, <span class='object_link'><a href="IoT/BMP280.html" title="IoT::BMP280 (class)">BMP280</a></span>, <span class='object_link'><a href="IoT/BMxSensor.html" title="IoT::BMxSensor (class)">BMxSensor</a></span>, <span class='object_link'><a href="IoT/BinaryActuator.html" title="IoT::BinaryActuator (class)">BinaryActuator</a></span>, <span class='object_link'><a href="IoT/BinaryEffector.html" title="IoT::BinaryEffector (class)">BinaryEffector</a></span>, <span class='object_link'><a href="IoT/BinaryReceptor.html" title="IoT::BinaryReceptor (class)">BinaryReceptor</a></span>, <span class='object_link'><a href="IoT/BinarySensor.html" title="IoT::BinarySensor (class)">BinarySensor</a></span>, <span class='object_link'><a href="IoT/Button.html" title="IoT::Button (class)">Button</a></span>, <span class='object_link'><a href="IoT/DHT11.html" title="IoT::DHT11 (class)">DHT11</a></span>, <span class='object_link'><a href="IoT/DHT22.html" title="IoT::DHT22 (class)">DHT22</a></span>, <span class='object_link'><a href="IoT/DHTxxSensor.html" title="IoT::DHTxxSensor (class)">DHTxxSensor</a></span>, <span class='object_link'><a href="IoT/DS18B20.html" title="IoT::DS18B20 (class)">DS18B20</a></span>, <span class='object_link'><a href="IoT/DigitalActuator.html" title="IoT::DigitalActuator (class)">DigitalActuator</a></span>, <span class='object_link'><a href="IoT/DigitalEffector.html" title="IoT::DigitalEffector (class)">DigitalEffector</a></span>, <span class='object_link'><a href="IoT/DigitalReceptor.html" title="IoT::DigitalReceptor (class)">DigitalReceptor</a></span>, <span class='object_link'><a href="IoT/DigitalSensor.html" title="IoT::DigitalSensor (class)">DigitalSensor</a></span>, <span class='object_link'><a href="IoT/Effector.html" title="IoT::Effector (class)">Effector</a></span>, <span class='object_link'><a href="IoT/HCSR501.html" title="IoT::HCSR501 (class)">HCSR501</a></span>, <span class='object_link'><a href="IoT/HumitureSensor.html" title="IoT::HumitureSensor (class)">HumitureSensor</a></span>, <span class='object_link'><a href="IoT/LED.html" title="IoT::LED (class)">LED</a></span>, <span class='object_link'><a href="IoT/MAX44009.html" title="IoT::MAX44009 (class)">MAX44009</a></span>, <span class='object_link'><a href="IoT/Receptor.html" title="IoT::Receptor (class)">Receptor</a></span>, <span class='object_link'><a href="IoT/Sensor.html" title="IoT::Sensor (class)">Sensor</a></span>, <span class='object_link'><a href="IoT/TemperatureSensor.html" title="IoT::TemperatureSensor (class)">TemperatureSensor</a></span>
104
106
 
105
107
 
106
108
  </p>
@@ -116,7 +118,7 @@
116
118
  </div>
117
119
 
118
120
  <div id="footer">
119
- Generated on Mon Jun 8 16:36:37 2020 by
121
+ Generated on Wed Jun 10 16:52:50 2020 by
120
122
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
123
  0.9.20 (ruby-2.5.5).
122
124
  </div>
@@ -78,21 +78,27 @@
78
78
 
79
79
  <dl>
80
80
  <dt>Defined in:</dt>
81
- <dd>lib/raspberry_pi_iot.rb</dd>
81
+ <dd>lib/raspberry_pi_iot/version.rb</dd>
82
82
  </dl>
83
83
 
84
84
  </div>
85
85
 
86
- <h2>Defined Under Namespace</h2>
87
- <p class="children">
88
-
89
-
86
+
90
87
 
91
-
92
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="RaspberryPiIoT/Error.html" title="RaspberryPiIoT::Error (class)">Error</a></span>
93
-
88
+ <h2>
89
+ Constant Summary
90
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
91
+ </h2>
92
+
93
+ <dl class="constants">
94
+
95
+ <dt id="VERSION-constant" class="">VERSION =
96
+
97
+ </dt>
98
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.1.3</span><span class='tstring_end'>&quot;</span></span></pre></dd>
99
+
100
+ </dl>
94
101
 
95
- </p>
96
102
 
97
103
 
98
104
 
@@ -105,7 +111,7 @@
105
111
  </div>
106
112
 
107
113
  <div id="footer">
108
- Generated on Mon Jun 8 16:36:37 2020 by
114
+ Generated on Wed Jun 10 16:52:50 2020 by
109
115
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
116
  0.9.20 (ruby-2.5.5).
111
117
  </div>
@@ -79,12 +79,149 @@
79
79
  <td valign='top' width="33%">
80
80
 
81
81
 
82
+ <ul id="alpha_A" class="alpha">
83
+ <li class="letter">A</li>
84
+ <ul>
85
+
86
+ <li>
87
+ <span class='object_link'><a href="IoT/Actuator.html" title="IoT::Actuator (class)">Actuator</a></span>
88
+
89
+ <small>(IoT)</small>
90
+
91
+ </li>
92
+
93
+ </ul>
94
+ </ul>
95
+
96
+
82
97
  <ul id="alpha_B" class="alpha">
83
98
  <li class="letter">B</li>
84
99
  <ul>
85
100
 
86
101
  <li>
87
- <span class='object_link'><a href="Bus.html" title="Bus (module)">Bus</a></span>
102
+ <span class='object_link'><a href="IoT/BH1750.html" title="IoT::BH1750 (class)">BH1750</a></span>
103
+
104
+ <small>(IoT)</small>
105
+
106
+ </li>
107
+
108
+ <li>
109
+ <span class='object_link'><a href="IoT/BME280.html" title="IoT::BME280 (class)">BME280</a></span>
110
+
111
+ <small>(IoT)</small>
112
+
113
+ </li>
114
+
115
+ <li>
116
+ <span class='object_link'><a href="IoT/BMP280.html" title="IoT::BMP280 (class)">BMP280</a></span>
117
+
118
+ <small>(IoT)</small>
119
+
120
+ </li>
121
+
122
+ <li>
123
+ <span class='object_link'><a href="IoT/BMxSensor.html" title="IoT::BMxSensor (class)">BMxSensor</a></span>
124
+
125
+ <small>(IoT)</small>
126
+
127
+ </li>
128
+
129
+ <li>
130
+ <span class='object_link'><a href="IoT/BinaryActuator.html" title="IoT::BinaryActuator (class)">BinaryActuator</a></span>
131
+
132
+ <small>(IoT)</small>
133
+
134
+ </li>
135
+
136
+ <li>
137
+ <span class='object_link'><a href="IoT/BinaryEffector.html" title="IoT::BinaryEffector (class)">BinaryEffector</a></span>
138
+
139
+ <small>(IoT)</small>
140
+
141
+ </li>
142
+
143
+ <li>
144
+ <span class='object_link'><a href="IoT/BinaryReceptor.html" title="IoT::BinaryReceptor (class)">BinaryReceptor</a></span>
145
+
146
+ <small>(IoT)</small>
147
+
148
+ </li>
149
+
150
+ <li>
151
+ <span class='object_link'><a href="IoT/BinarySensor.html" title="IoT::BinarySensor (class)">BinarySensor</a></span>
152
+
153
+ <small>(IoT)</small>
154
+
155
+ </li>
156
+
157
+ <li>
158
+ <span class='object_link'><a href="IoT/Button.html" title="IoT::Button (class)">Button</a></span>
159
+
160
+ <small>(IoT)</small>
161
+
162
+ </li>
163
+
164
+ </ul>
165
+ </ul>
166
+
167
+
168
+ <ul id="alpha_D" class="alpha">
169
+ <li class="letter">D</li>
170
+ <ul>
171
+
172
+ <li>
173
+ <span class='object_link'><a href="IoT/DHT11.html" title="IoT::DHT11 (class)">DHT11</a></span>
174
+
175
+ <small>(IoT)</small>
176
+
177
+ </li>
178
+
179
+ <li>
180
+ <span class='object_link'><a href="IoT/DHT22.html" title="IoT::DHT22 (class)">DHT22</a></span>
181
+
182
+ <small>(IoT)</small>
183
+
184
+ </li>
185
+
186
+ <li>
187
+ <span class='object_link'><a href="IoT/DHTxxSensor.html" title="IoT::DHTxxSensor (class)">DHTxxSensor</a></span>
188
+
189
+ <small>(IoT)</small>
190
+
191
+ </li>
192
+
193
+ <li>
194
+ <span class='object_link'><a href="IoT/DS18B20.html" title="IoT::DS18B20 (class)">DS18B20</a></span>
195
+
196
+ <small>(IoT)</small>
197
+
198
+ </li>
199
+
200
+ <li>
201
+ <span class='object_link'><a href="IoT/DigitalActuator.html" title="IoT::DigitalActuator (class)">DigitalActuator</a></span>
202
+
203
+ <small>(IoT)</small>
204
+
205
+ </li>
206
+
207
+ <li>
208
+ <span class='object_link'><a href="IoT/DigitalEffector.html" title="IoT::DigitalEffector (class)">DigitalEffector</a></span>
209
+
210
+ <small>(IoT)</small>
211
+
212
+ </li>
213
+
214
+ <li>
215
+ <span class='object_link'><a href="IoT/DigitalReceptor.html" title="IoT::DigitalReceptor (class)">DigitalReceptor</a></span>
216
+
217
+ <small>(IoT)</small>
218
+
219
+ </li>
220
+
221
+ <li>
222
+ <span class='object_link'><a href="IoT/DigitalSensor.html" title="IoT::DigitalSensor (class)">DigitalSensor</a></span>
223
+
224
+ <small>(IoT)</small>
88
225
 
89
226
  </li>
90
227
 
@@ -97,9 +234,9 @@
97
234
  <ul>
98
235
 
99
236
  <li>
100
- <span class='object_link'><a href="RaspberryPiIoT/Error.html" title="RaspberryPiIoT::Error (class)">Error</a></span>
237
+ <span class='object_link'><a href="IoT/Effector.html" title="IoT::Effector (class)">Effector</a></span>
101
238
 
102
- <small>(RaspberryPiIoT)</small>
239
+ <small>(IoT)</small>
103
240
 
104
241
  </li>
105
242
 
@@ -107,17 +244,32 @@
107
244
  </ul>
108
245
 
109
246
 
110
- <ul id="alpha_I" class="alpha">
111
- <li class="letter">I</li>
247
+ <ul id="alpha_H" class="alpha">
248
+ <li class="letter">H</li>
112
249
  <ul>
113
250
 
114
251
  <li>
115
- <span class='object_link'><a href="Bus/I2C.html" title="Bus::I2C (class)">I2C</a></span>
252
+ <span class='object_link'><a href="IoT/HCSR501.html" title="IoT::HCSR501 (class)">HCSR501</a></span>
253
+
254
+ <small>(IoT)</small>
255
+
256
+ </li>
257
+
258
+ <li>
259
+ <span class='object_link'><a href="IoT/HumitureSensor.html" title="IoT::HumitureSensor (class)">HumitureSensor</a></span>
116
260
 
117
- <small>(Bus)</small>
261
+ <small>(IoT)</small>
118
262
 
119
263
  </li>
120
264
 
265
+ </ul>
266
+ </ul>
267
+
268
+
269
+ <ul id="alpha_I" class="alpha">
270
+ <li class="letter">I</li>
271
+ <ul>
272
+
121
273
  <li>
122
274
  <span class='object_link'><a href="IoT.html" title="IoT (module)">IoT</a></span>
123
275
 
@@ -132,7 +284,25 @@
132
284
  <ul>
133
285
 
134
286
  <li>
135
- <span class='object_link'><a href="IoT/Log.html" title="IoT::Log (class)">Log</a></span>
287
+ <span class='object_link'><a href="IoT/LED.html" title="IoT::LED (class)">LED</a></span>
288
+
289
+ <small>(IoT)</small>
290
+
291
+ </li>
292
+
293
+ </ul>
294
+ </ul>
295
+
296
+
297
+ </td><td valign='top' width="33%">
298
+
299
+
300
+ <ul id="alpha_M" class="alpha">
301
+ <li class="letter">M</li>
302
+ <ul>
303
+
304
+ <li>
305
+ <span class='object_link'><a href="IoT/MAX44009.html" title="IoT::MAX44009 (class)">MAX44009</a></span>
136
306
 
137
307
  <small>(IoT)</small>
138
308
 
@@ -142,14 +312,14 @@
142
312
  </ul>
143
313
 
144
314
 
145
- <ul id="alpha_O" class="alpha">
146
- <li class="letter">O</li>
315
+ <ul id="alpha_P" class="alpha">
316
+ <li class="letter">P</li>
147
317
  <ul>
148
318
 
149
319
  <li>
150
- <span class='object_link'><a href="Bus/OneWire.html" title="Bus::OneWire (class)">OneWire</a></span>
320
+ <span class='object_link'><a href="IoT/LED/PWM.html" title="IoT::LED::PWM (class)">PWM</a></span>
151
321
 
152
- <small>(Bus)</small>
322
+ <small>(IoT::LED)</small>
153
323
 
154
324
  </li>
155
325
 
@@ -162,7 +332,9 @@
162
332
  <ul>
163
333
 
164
334
  <li>
165
- <span class='object_link'><a href="RaspberryPi.html" title="RaspberryPi (module)">RaspberryPi</a></span>
335
+ <span class='object_link'><a href="IoT/LED/RGB.html" title="IoT::LED::RGB (class)">RGB</a></span>
336
+
337
+ <small>(IoT::LED)</small>
166
338
 
167
339
  </li>
168
340
 
@@ -171,6 +343,13 @@
171
343
 
172
344
  </li>
173
345
 
346
+ <li>
347
+ <span class='object_link'><a href="IoT/Receptor.html" title="IoT::Receptor (class)">Receptor</a></span>
348
+
349
+ <small>(IoT)</small>
350
+
351
+ </li>
352
+
174
353
  </ul>
175
354
  </ul>
176
355
 
@@ -180,9 +359,9 @@
180
359
  <ul>
181
360
 
182
361
  <li>
183
- <span class='object_link'><a href="Bus/SPI.html" title="Bus::SPI (class)">SPI</a></span>
362
+ <span class='object_link'><a href="IoT/Sensor.html" title="IoT::Sensor (class)">Sensor</a></span>
184
363
 
185
- <small>(Bus)</small>
364
+ <small>(IoT)</small>
186
365
 
187
366
  </li>
188
367
 
@@ -190,17 +369,14 @@
190
369
  </ul>
191
370
 
192
371
 
193
- </td><td valign='top' width="33%">
194
-
195
-
196
372
  <ul id="alpha_T" class="alpha">
197
373
  <li class="letter">T</li>
198
374
  <ul>
199
375
 
200
376
  <li>
201
- <span class='object_link'><a href="RaspberryPi/ThermalSensor.html" title="RaspberryPi::ThermalSensor (class)">ThermalSensor</a></span>
377
+ <span class='object_link'><a href="IoT/TemperatureSensor.html" title="IoT::TemperatureSensor (class)">TemperatureSensor</a></span>
202
378
 
203
- <small>(RaspberryPi)</small>
379
+ <small>(IoT)</small>
204
380
 
205
381
  </li>
206
382
 
@@ -216,7 +392,7 @@
216
392
  </div>
217
393
 
218
394
  <div id="footer">
219
- Generated on Mon Jun 8 16:36:36 2020 by
395
+ Generated on Wed Jun 10 16:52:49 2020 by
220
396
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
221
397
  0.9.20 (ruby-2.5.5).
222
398
  </div>
@@ -43,7 +43,7 @@
43
43
 
44
44
  <ul id="full_list" class="class">
45
45
  <li id="object_" class="odd"><div class="item" style="padding-left:30px"><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></div></li>
46
- <li id='object_Bus' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Bus.html" title="Bus (module)">Bus</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Bus::I2C' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Bus/I2C.html" title="Bus::I2C (class)">I2C</a></span> &lt; Object<small class='search_info'>Bus</small></div></li><li id='object_Bus::OneWire' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Bus/OneWire.html" title="Bus::OneWire (class)">OneWire</a></span> &lt; Object<small class='search_info'>Bus</small></div></li><li id='object_Bus::SPI' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Bus/SPI.html" title="Bus::SPI (class)">SPI</a></span> &lt; Object<small class='search_info'>Bus</small></div></li></ul></li><li id='object_IoT' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="IoT.html" title="IoT (module)">IoT</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_IoT::Log' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/Log.html" title="IoT::Log (class)">Log</a></span> &lt; Object<small class='search_info'>IoT</small></div></li></ul></li><li id='object_RaspberryPi' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="RaspberryPi.html" title="RaspberryPi (module)">RaspberryPi</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_RaspberryPi::ThermalSensor' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="RaspberryPi/ThermalSensor.html" title="RaspberryPi::ThermalSensor (class)">ThermalSensor</a></span> &lt; TemperatureSensor<small class='search_info'>RaspberryPi</small></div></li></ul></li><li id='object_RaspberryPiIoT' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="RaspberryPiIoT.html" title="RaspberryPiIoT (module)">RaspberryPiIoT</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_RaspberryPiIoT::Error' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="RaspberryPiIoT/Error.html" title="RaspberryPiIoT::Error (class)">Error</a></span> &lt; StandardError<small class='search_info'>RaspberryPiIoT</small></div></li></ul></li>
46
+ <li id='object_IoT' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="IoT.html" title="IoT (module)">IoT</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_IoT::Actuator' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/Actuator.html" title="IoT::Actuator (class)">Actuator</a></span> &lt; Effector<small class='search_info'>IoT</small></div></li><li id='object_IoT::BH1750' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/BH1750.html" title="IoT::BH1750 (class)">BH1750</a></span> &lt; DigitalReceptor<small class='search_info'>IoT</small></div></li><li id='object_IoT::BME280' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/BME280.html" title="IoT::BME280 (class)">BME280</a></span> &lt; BMxSensor<small class='search_info'>IoT</small></div></li><li id='object_IoT::BMP280' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/BMP280.html" title="IoT::BMP280 (class)">BMP280</a></span> &lt; BMxSensor<small class='search_info'>IoT</small></div></li><li id='object_IoT::BMxSensor' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/BMxSensor.html" title="IoT::BMxSensor (class)">BMxSensor</a></span> &lt; HumitureSensor<small class='search_info'>IoT</small></div></li><li id='object_IoT::BinaryActuator' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/BinaryActuator.html" title="IoT::BinaryActuator (class)">BinaryActuator</a></span> &lt; BinaryEffector<small class='search_info'>IoT</small></div></li><li id='object_IoT::BinaryEffector' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/BinaryEffector.html" title="IoT::BinaryEffector (class)">BinaryEffector</a></span> &lt; DigitalEffector<small class='search_info'>IoT</small></div></li><li id='object_IoT::BinaryReceptor' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/BinaryReceptor.html" title="IoT::BinaryReceptor (class)">BinaryReceptor</a></span> &lt; Receptor<small class='search_info'>IoT</small></div></li><li id='object_IoT::BinarySensor' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/BinarySensor.html" title="IoT::BinarySensor (class)">BinarySensor</a></span> &lt; BinaryReceptor<small class='search_info'>IoT</small></div></li><li id='object_IoT::Button' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/Button.html" title="IoT::Button (class)">Button</a></span> &lt; BinaryReceptor<small class='search_info'>IoT</small></div></li><li id='object_IoT::DHT11' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/DHT11.html" title="IoT::DHT11 (class)">DHT11</a></span> &lt; DHTxxSensor<small class='search_info'>IoT</small></div></li><li id='object_IoT::DHT22' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/DHT22.html" title="IoT::DHT22 (class)">DHT22</a></span> &lt; DHTxxSensor<small class='search_info'>IoT</small></div></li><li id='object_IoT::DHTxxSensor' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/DHTxxSensor.html" title="IoT::DHTxxSensor (class)">DHTxxSensor</a></span> &lt; HumitureSensor<small class='search_info'>IoT</small></div></li><li id='object_IoT::DS18B20' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/DS18B20.html" title="IoT::DS18B20 (class)">DS18B20</a></span> &lt; TemperatureSensor<small class='search_info'>IoT</small></div></li><li id='object_IoT::DigitalActuator' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/DigitalActuator.html" title="IoT::DigitalActuator (class)">DigitalActuator</a></span> &lt; DigitalEffector<small class='search_info'>IoT</small></div></li><li id='object_IoT::DigitalEffector' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/DigitalEffector.html" title="IoT::DigitalEffector (class)">DigitalEffector</a></span> &lt; Effector<small class='search_info'>IoT</small></div></li><li id='object_IoT::DigitalReceptor' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/DigitalReceptor.html" title="IoT::DigitalReceptor (class)">DigitalReceptor</a></span> &lt; Receptor<small class='search_info'>IoT</small></div></li><li id='object_IoT::DigitalSensor' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/DigitalSensor.html" title="IoT::DigitalSensor (class)">DigitalSensor</a></span> &lt; DigitalReceptor<small class='search_info'>IoT</small></div></li><li id='object_IoT::Effector' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/Effector.html" title="IoT::Effector (class)">Effector</a></span> &lt; Object<small class='search_info'>IoT</small></div></li><li id='object_IoT::HCSR501' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/HCSR501.html" title="IoT::HCSR501 (class)">HCSR501</a></span> &lt; BinarySensor<small class='search_info'>IoT</small></div></li><li id='object_IoT::HumitureSensor' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/HumitureSensor.html" title="IoT::HumitureSensor (class)">HumitureSensor</a></span> &lt; TemperatureSensor<small class='search_info'>IoT</small></div></li><li id='object_IoT::LED' class='collapsed even'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="IoT/LED.html" title="IoT::LED (class)">LED</a></span> &lt; BinaryEffector<small class='search_info'>IoT</small></div><ul><li id='object_IoT::LED::PWM' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="IoT/LED/PWM.html" title="IoT::LED::PWM (class)">PWM</a></span> &lt; Object<small class='search_info'>IoT::LED</small></div></li><li id='object_IoT::LED::RGB' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="IoT/LED/RGB.html" title="IoT::LED::RGB (class)">RGB</a></span> &lt; DigitalEffector<small class='search_info'>IoT::LED</small></div></li></ul></li><li id='object_IoT::MAX44009' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/MAX44009.html" title="IoT::MAX44009 (class)">MAX44009</a></span> &lt; Object<small class='search_info'>IoT</small></div></li><li id='object_IoT::Receptor' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/Receptor.html" title="IoT::Receptor (class)">Receptor</a></span> &lt; Object<small class='search_info'>IoT</small></div></li><li id='object_IoT::Sensor' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/Sensor.html" title="IoT::Sensor (class)">Sensor</a></span> &lt; Receptor<small class='search_info'>IoT</small></div></li><li id='object_IoT::TemperatureSensor' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="IoT/TemperatureSensor.html" title="IoT::TemperatureSensor (class)">TemperatureSensor</a></span> &lt; DigitalSensor<small class='search_info'>IoT</small></div></li></ul></li><li id='object_RaspberryPiIoT' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="RaspberryPiIoT.html" title="RaspberryPiIoT (module)">RaspberryPiIoT</a></span><small class='search_info'>Top Level Namespace</small></div></li>
47
47
 
48
48
  </ul>
49
49
  </div>
@@ -82,7 +82,7 @@ DEALINGS IN THE SOFTWARE.

82
82
  </div></div>
83
83
 
84
84
  <div id="footer">
85
- Generated on Mon Jun 8 16:36:36 2020 by
85
+ Generated on Wed Jun 10 16:52:49 2020 by
86
86
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
87
87
  0.9.20 (ruby-2.5.5).
88
88
  </div>
@@ -68,6 +68,10 @@ it’s such a fun to do physical programming! But I love to program in Ruby.
68
68
  So I tried to make a pragmatic set of useful IoT libraries for the Ruby language
69
69
  for all who want to program for Raspberry Pi in Ruby.</p>
70
70
 
71
+ <p>I taught sachoolchildren in a Raspberry Pi Code Club to write OO-programs that
72
+ interact with physical devices. And I found Ruby to be a very effective tool
73
+ in teaching IoT programming.</p>
74
+
71
75
  <h2 id="installation">Installation</h2>
72
76
 
73
77
  <p>To use this library you should do:</p>
@@ -79,13 +83,13 @@ for all who want to program for Raspberry Pi in Ruby.

79
83
  <p>sudo apt-get install ruby-dev</p>
80
84
  </li>
81
85
  <li>
82
- <p>Download and install the bcm2835-1.xx.tar.gz library:</p>
86
+ <p>Download and install the bcm2835-1.xx.tar.gz library, e. g.:</p>
83
87
 
84
88
  <p>wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.58.tar.gz</p>
85
89
 
86
- <p>tar zxvf bcm2835-1.xx.tar.gz</p>
90
+ <p>tar zxvf bcm2835-1.58.tar.gz</p>
87
91
 
88
- <p>cd bcm2835-1.xx</p>
92
+ <p>cd bcm2835-1.58</p>
89
93
 
90
94
  <p>./configure</p>
91
95
 
@@ -98,10 +102,15 @@ for all who want to program for Raspberry Pi in Ruby.

98
102
  <li>
99
103
  <p>Install the latest version of gem:</p>
100
104
 
101
- <p>gem install raspberry_pi_iot.gem</p>
105
+ <p>gem install raspberry_pi_iot</p>
102
106
  </li>
103
107
  </ol>
104
108
 
109
+ <h2 id="usage">Usage</h2>
110
+
111
+ <p>Main classes with examples of usage are described <a href="./DESCRIPTION.md">here</a>.
112
+ Samples of usage can be run in the demo/ sub-directory.</p>
113
+
105
114
  <h2 id="plans">Plans:</h2>
106
115
 
107
116
  <ul>
@@ -109,7 +118,7 @@ for all who want to program for Raspberry Pi in Ruby.

109
118
  <p>Support for more devices (I2C, SPI, LED strip &amp; matrix), SenseHAT, Official Display (brightness, orientation).</p>
110
119
  </li>
111
120
  <li>
112
- <p>Better functionality for existing classes (Button, etc.)</p>
121
+ <p>Better functionality for existing classes (Button, LED, etc.)</p>
113
122
  </li>
114
123
  <li>
115
124
  <p>More tests.</p>
@@ -126,7 +135,7 @@ for all who want to program for Raspberry Pi in Ruby.

126
135
  </div></div>
127
136
 
128
137
  <div id="footer">
129
- Generated on Mon Jun 8 16:36:36 2020 by
138
+ Generated on Wed Jun 10 16:52:49 2020 by
130
139
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
131
140
  0.9.20 (ruby-2.5.5).
132
141
  </div>