node-poweredup 6.10.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/.drone.yml +1 -0
  2. package/.gitmodules +3 -0
  3. package/{jsdoc.conf.json → .jsdoc.json} +14 -1
  4. package/README.md +47 -42
  5. package/dist/browser/poweredup.js +1 -1
  6. package/dist/browser/poweredup.js.map +1 -1
  7. package/dist/node/color.d.ts +6 -0
  8. package/dist/node/color.js +38 -0
  9. package/dist/node/color.js.map +1 -0
  10. package/dist/node/consts.d.ts +48 -27
  11. package/dist/node/consts.js +53 -31
  12. package/dist/node/consts.js.map +1 -1
  13. package/dist/node/devices/absolutemotor.js +8 -9
  14. package/dist/node/devices/absolutemotor.js.map +1 -1
  15. package/dist/node/devices/basicmotor.js +2 -2
  16. package/dist/node/devices/basicmotor.js.map +1 -1
  17. package/dist/node/devices/colordistancesensor.d.ts +11 -0
  18. package/dist/node/devices/colordistancesensor.js +95 -2
  19. package/dist/node/devices/colordistancesensor.js.map +1 -1
  20. package/dist/node/devices/device.d.ts +2 -2
  21. package/dist/node/devices/device.js +10 -5
  22. package/dist/node/devices/device.js.map +1 -1
  23. package/dist/node/devices/duplotrainbasecolorsensor.d.ts +2 -1
  24. package/dist/node/devices/duplotrainbasecolorsensor.js +15 -2
  25. package/dist/node/devices/duplotrainbasecolorsensor.js.map +1 -1
  26. package/dist/node/devices/light.js +1 -1
  27. package/dist/node/devices/light.js.map +1 -1
  28. package/dist/node/devices/tachomotor.js +10 -12
  29. package/dist/node/devices/tachomotor.js.map +1 -1
  30. package/dist/node/devices/technic3x3colorlightmatrix.d.ts +22 -0
  31. package/dist/node/devices/technic3x3colorlightmatrix.js +77 -0
  32. package/dist/node/devices/technic3x3colorlightmatrix.js.map +1 -0
  33. package/dist/node/devices/techniccolorsensor.js +2 -1
  34. package/dist/node/devices/techniccolorsensor.js.map +1 -1
  35. package/dist/node/devices/technicmediumhubtiltsensor.d.ts +25 -1
  36. package/dist/node/devices/technicmediumhubtiltsensor.js +70 -2
  37. package/dist/node/devices/technicmediumhubtiltsensor.js.map +1 -1
  38. package/dist/node/devices/technicsmallangularmotor.d.ts +12 -0
  39. package/dist/node/devices/technicsmallangularmotor.js +35 -0
  40. package/dist/node/devices/technicsmallangularmotor.js.map +1 -0
  41. package/dist/node/hubs/basehub.js +4 -0
  42. package/dist/node/hubs/basehub.js.map +1 -1
  43. package/dist/node/hubs/hub.js +1 -1
  44. package/dist/node/hubs/hub.js.map +1 -1
  45. package/dist/node/hubs/lpf2hub.js +19 -21
  46. package/dist/node/hubs/lpf2hub.js.map +1 -1
  47. package/dist/node/hubs/movehub.js +1 -1
  48. package/dist/node/hubs/movehub.js.map +1 -1
  49. package/dist/node/hubs/technicmediumhub.js +1 -1
  50. package/dist/node/hubs/technicmediumhub.js.map +1 -1
  51. package/dist/node/hubs/technicsmallhub.d.ts +18 -0
  52. package/dist/node/hubs/technicsmallhub.js +64 -0
  53. package/dist/node/hubs/technicsmallhub.js.map +1 -0
  54. package/dist/node/index-browser.js +6 -0
  55. package/dist/node/index-browser.js.map +1 -1
  56. package/dist/node/index-node.d.ts +4 -1
  57. package/dist/node/index-node.js +7 -1
  58. package/dist/node/index-node.js.map +1 -1
  59. package/dist/node/poweredup-browser.js +8 -1
  60. package/dist/node/poweredup-browser.js.map +1 -1
  61. package/dist/node/poweredup-node.js +28 -1
  62. package/dist/node/poweredup-node.js.map +1 -1
  63. package/dist/node/utils.d.ts +1 -1
  64. package/dist/node/utils.js +10 -3
  65. package/dist/node/utils.js.map +1 -1
  66. package/docs/AbsoluteMotor.html +1220 -1405
  67. package/docs/BaseHub.html +787 -872
  68. package/docs/BasicMotor.html +923 -1078
  69. package/docs/ColorDistanceSensor.html +2188 -1540
  70. package/docs/CurrentSensor.html +711 -800
  71. package/docs/Device.html +574 -665
  72. package/docs/DuploTrainBase.html +1255 -1375
  73. package/docs/DuploTrainBaseColorSensor.html +1049 -978
  74. package/docs/DuploTrainBaseMotor.html +958 -1113
  75. package/docs/DuploTrainBaseSpeaker.html +793 -916
  76. package/docs/DuploTraniBaseSpeedometer.html +628 -719
  77. package/docs/Hub.html +5621 -2397
  78. package/docs/HubLED.html +831 -944
  79. package/docs/LPF2Hub.html +1215 -1335
  80. package/docs/Light.html +831 -944
  81. package/docs/Mario.html +1255 -1420
  82. package/docs/MarioAccelerometer.html +834 -911
  83. package/docs/MarioBarcodeSensor.html +834 -911
  84. package/docs/MarioPantsSensor.html +711 -800
  85. package/docs/MediumLinearMotor.html +861 -1000
  86. package/docs/MotionSensor.html +711 -800
  87. package/docs/MoveHub.html +1255 -1420
  88. package/docs/MoveHubMediumLinearMotor.html +861 -1000
  89. package/docs/MoveHubTiltSensor.html +730 -814
  90. package/docs/PiezoBuzzer.html +732 -834
  91. package/docs/PoweredUP.html +4322 -0
  92. package/docs/RemoteControl.html +1255 -1420
  93. package/docs/RemoteControlButton.html +711 -800
  94. package/docs/SimpleMediumLinearMotor.html +628 -719
  95. package/docs/TachoMotor.html +1644 -1835
  96. package/docs/Technic3x3ColorLightMatrix.html +1181 -0
  97. package/docs/TechnicColorSensor.html +1008 -1099
  98. package/docs/TechnicDistanceSensor.html +939 -1027
  99. package/docs/TechnicForceSensor.html +883 -968
  100. package/docs/TechnicLargeAngularMotor.html +1254 -1439
  101. package/docs/TechnicLargeLinearMotor.html +1254 -1439
  102. package/docs/TechnicMediumAngularMotor.html +1254 -1439
  103. package/docs/TechnicMediumHub.html +1255 -1420
  104. package/docs/TechnicMediumHubAccelerometerSensor.html +749 -828
  105. package/docs/TechnicMediumHubGyroSensor.html +749 -828
  106. package/docs/TechnicMediumHubTiltSensor.html +1340 -831
  107. package/docs/TechnicSmallAngularMotor.html +2073 -0
  108. package/docs/TechnicXLargeLinearMotor.html +1254 -1439
  109. package/docs/TiltSensor.html +730 -814
  110. package/docs/TrainMotor.html +958 -1113
  111. package/docs/VoltageSensor.html +711 -800
  112. package/docs/WeDo2SmartHub.html +1112 -1221
  113. package/docs/consts.js.html +791 -0
  114. package/docs/devices_absolutemotor.js.html +97 -200
  115. package/docs/devices_basicmotor.js.html +91 -193
  116. package/docs/devices_colordistancesensor.js.html +184 -193
  117. package/docs/devices_currentsensor.js.html +89 -191
  118. package/docs/devices_device.js.html +99 -196
  119. package/docs/devices_duplotrainbasecolorsensor.js.html +104 -193
  120. package/docs/devices_duplotrainbasemotor.js.html +92 -194
  121. package/docs/devices_duplotrainbasespeaker.js.html +89 -191
  122. package/docs/devices_duplotrainbasespeedometer.js.html +89 -191
  123. package/docs/devices_hubled.js.html +89 -191
  124. package/docs/devices_light.js.html +90 -192
  125. package/docs/devices_marioaccelerometer.js.html +89 -191
  126. package/docs/devices_mariobarcodesensor.js.html +89 -191
  127. package/docs/devices_mariopantssensor.js.html +89 -191
  128. package/docs/devices_mediumlinearmotor.js.html +92 -194
  129. package/docs/devices_motionsensor.js.html +89 -191
  130. package/docs/devices_movehubmediumlinearmotor.js.html +92 -194
  131. package/docs/devices_movehubtiltsensor.js.html +89 -191
  132. package/docs/devices_piezobuzzer.js.html +89 -191
  133. package/docs/devices_remotecontrolbutton.js.html +89 -191
  134. package/docs/devices_simplemediumlinearmotor.js.html +92 -194
  135. package/docs/devices_tachomotor.js.html +99 -203
  136. package/docs/devices_technic3x3colorlightmatrix.js.html +190 -0
  137. package/docs/devices_techniccolorsensor.js.html +91 -192
  138. package/docs/devices_technicdistancesensor.js.html +89 -191
  139. package/docs/devices_technicforcesensor.js.html +89 -191
  140. package/docs/devices_techniclargeangularmotor.js.html +92 -194
  141. package/docs/devices_techniclargelinearmotor.js.html +92 -194
  142. package/docs/devices_technicmediumangularmotor.js.html +92 -194
  143. package/docs/devices_technicmediumhubaccelerometersensor.js.html +89 -191
  144. package/docs/devices_technicmediumhubgyrosensor.js.html +89 -191
  145. package/docs/devices_technicmediumhubtiltsensor.js.html +159 -193
  146. package/docs/devices_technicsmallangularmotor.js.html +148 -0
  147. package/docs/devices_technicxlargelinearmotor.js.html +92 -194
  148. package/docs/devices_tiltsensor.js.html +89 -191
  149. package/docs/devices_trainmotor.js.html +92 -194
  150. package/docs/devices_voltagesensor.js.html +89 -191
  151. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  152. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  153. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  154. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  155. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  156. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  157. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  158. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  159. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  160. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  161. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  162. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  163. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  164. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  165. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  166. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  167. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  168. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  169. package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
  170. package/docs/fonts/OpenSans-Semibold-webfont.svg +1830 -0
  171. package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  172. package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
  173. package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  174. package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
  175. package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  176. package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  177. package/docs/global.html +9829 -0
  178. package/docs/hubs_basehub.js.html +93 -191
  179. package/docs/hubs_duplotrainbase.js.html +89 -191
  180. package/docs/hubs_hub.js.html +90 -192
  181. package/docs/hubs_lpf2hub.js.html +108 -212
  182. package/docs/hubs_mario.js.html +89 -191
  183. package/docs/hubs_movehub.js.html +90 -192
  184. package/docs/hubs_remotecontrol.js.html +89 -191
  185. package/docs/hubs_technicmediumhub.js.html +90 -192
  186. package/docs/hubs_technicsmallhub.js.html +177 -0
  187. package/docs/hubs_wedo2smarthub.js.html +89 -191
  188. package/docs/icons/home.svg +4 -0
  189. package/docs/icons/search.svg +4 -0
  190. package/docs/index.html +143 -236
  191. package/docs/poweredup-browser.js.html +348 -0
  192. package/docs/poweredup-node.js.html +312 -0
  193. package/docs/scripts/linenumber.js +23 -0
  194. package/docs/scripts/pagelocation.js +89 -0
  195. package/docs/styles/collapse.css +27 -0
  196. package/docs/styles/jsdoc-default.css +953 -0
  197. package/docs/styles/prettify-jsdoc.css +111 -0
  198. package/docs/styles/prettify-tomorrow.css +15 -9
  199. package/jsdoc-template/braintree/CHANGELOG.md +31 -0
  200. package/jsdoc-template/braintree/LICENSE +27 -0
  201. package/jsdoc-template/braintree/README.md +90 -0
  202. package/jsdoc-template/braintree/package.json +39 -0
  203. package/jsdoc-template/braintree/publish.js +675 -0
  204. package/jsdoc-template/braintree/static/fonts/OpenSans-Bold-webfont.eot +0 -0
  205. package/jsdoc-template/braintree/static/fonts/OpenSans-Bold-webfont.svg +1830 -0
  206. package/jsdoc-template/braintree/static/fonts/OpenSans-Bold-webfont.woff +0 -0
  207. package/jsdoc-template/braintree/static/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  208. package/jsdoc-template/braintree/static/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  209. package/jsdoc-template/braintree/static/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  210. package/jsdoc-template/braintree/static/fonts/OpenSans-Italic-webfont.eot +0 -0
  211. package/jsdoc-template/braintree/static/fonts/OpenSans-Italic-webfont.svg +1830 -0
  212. package/jsdoc-template/braintree/static/fonts/OpenSans-Italic-webfont.woff +0 -0
  213. package/jsdoc-template/braintree/static/fonts/OpenSans-Light-webfont.eot +0 -0
  214. package/jsdoc-template/braintree/static/fonts/OpenSans-Light-webfont.svg +1831 -0
  215. package/jsdoc-template/braintree/static/fonts/OpenSans-Light-webfont.woff +0 -0
  216. package/jsdoc-template/braintree/static/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  217. package/jsdoc-template/braintree/static/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  218. package/jsdoc-template/braintree/static/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  219. package/jsdoc-template/braintree/static/fonts/OpenSans-Regular-webfont.eot +0 -0
  220. package/jsdoc-template/braintree/static/fonts/OpenSans-Regular-webfont.svg +1831 -0
  221. package/jsdoc-template/braintree/static/fonts/OpenSans-Regular-webfont.woff +0 -0
  222. package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.eot +0 -0
  223. package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.svg +1830 -0
  224. package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  225. package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.woff +0 -0
  226. package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  227. package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
  228. package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  229. package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  230. package/jsdoc-template/braintree/static/icons/home.svg +4 -0
  231. package/jsdoc-template/braintree/static/icons/search.svg +4 -0
  232. package/jsdoc-template/braintree/static/scripts/linenumber.js +23 -0
  233. package/jsdoc-template/braintree/static/scripts/pagelocation.js +89 -0
  234. package/jsdoc-template/braintree/static/styles/collapse.css +27 -0
  235. package/jsdoc-template/braintree/static/styles/jsdoc-default.css +953 -0
  236. package/jsdoc-template/braintree/static/styles/prettify-jsdoc.css +111 -0
  237. package/jsdoc-template/braintree/static/styles/prettify-tomorrow.css +138 -0
  238. package/jsdoc-template/braintree/tmpl/augments.tmpl +10 -0
  239. package/jsdoc-template/braintree/tmpl/container.tmpl +213 -0
  240. package/jsdoc-template/braintree/tmpl/details.tmpl +223 -0
  241. package/jsdoc-template/braintree/tmpl/example.tmpl +2 -0
  242. package/jsdoc-template/braintree/tmpl/examples.tmpl +14 -0
  243. package/jsdoc-template/braintree/tmpl/exceptions.tmpl +28 -0
  244. package/jsdoc-template/braintree/tmpl/layout.tmpl +150 -0
  245. package/jsdoc-template/braintree/tmpl/mainpage.tmpl +9 -0
  246. package/jsdoc-template/braintree/tmpl/members.tmpl +38 -0
  247. package/jsdoc-template/braintree/tmpl/method.tmpl +128 -0
  248. package/jsdoc-template/braintree/tmpl/params.tmpl +125 -0
  249. package/jsdoc-template/braintree/tmpl/properties.tmpl +111 -0
  250. package/jsdoc-template/braintree/tmpl/returns.tmpl +17 -0
  251. package/jsdoc-template/braintree/tmpl/source.tmpl +9 -0
  252. package/jsdoc-template/braintree/tmpl/tutorial.tmpl +23 -0
  253. package/jsdoc-template/braintree/tmpl/type.tmpl +11 -0
  254. package/package.json +14 -15
  255. package/src/color.ts +20 -0
  256. package/src/consts.ts +47 -26
  257. package/src/devices/absolutemotor.ts +2 -3
  258. package/src/devices/colordistancesensor.ts +98 -3
  259. package/src/devices/device.ts +9 -6
  260. package/src/devices/duplotrainbasecolorsensor.ts +17 -2
  261. package/src/devices/tachomotor.ts +4 -6
  262. package/src/devices/technic3x3colorlightmatrix.ts +64 -0
  263. package/src/devices/techniccolorsensor.ts +2 -1
  264. package/src/devices/technicmediumhubtiltsensor.ts +75 -3
  265. package/src/devices/technicsmallangularmotor.ts +17 -0
  266. package/src/hubs/basehub.ts +4 -0
  267. package/src/hubs/lpf2hub.ts +7 -11
  268. package/src/hubs/technicmediumhub.ts +1 -1
  269. package/src/hubs/technicsmallhub.ts +60 -0
  270. package/src/index-browser.ts +6 -0
  271. package/src/index-node.ts +6 -0
  272. package/src/poweredup-browser.ts +8 -1
  273. package/src/poweredup-node.ts +7 -1
  274. package/src/utils.ts +7 -0
  275. package/docs/classes.list.html +0 -8654
  276. package/docs/fonts/glyphicons-halflings-regular.eot +0 -0
  277. package/docs/fonts/glyphicons-halflings-regular.svg +0 -288
  278. package/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
  279. package/docs/fonts/glyphicons-halflings-regular.woff +0 -0
  280. package/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
  281. package/docs/img/glyphicons-halflings-white.png +0 -0
  282. package/docs/img/glyphicons-halflings.png +0 -0
  283. package/docs/quicksearch.html +0 -31
  284. package/docs/scripts/docstrap.lib.js +0 -11
  285. package/docs/scripts/fulltext-search-ui.js +0 -89
  286. package/docs/scripts/fulltext-search.js +0 -36
  287. package/docs/scripts/lunr.min.js +0 -6
  288. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  289. package/docs/scripts/prettify/jquery.min.js +0 -6
  290. package/docs/scripts/prettify/lang-css.js +0 -21
  291. package/docs/scripts/prettify/prettify.js +0 -496
  292. package/docs/scripts/sunlight.js +0 -1157
  293. package/docs/scripts/toc.js +0 -203
  294. package/docs/styles/darkstrap.css +0 -960
  295. package/docs/styles/site.cerulean.css +0 -7008
  296. package/docs/styles/site.cosmo.css +0 -7061
  297. package/docs/styles/site.cyborg.css +0 -7048
  298. package/docs/styles/site.darkly.css +0 -7171
  299. package/docs/styles/site.darkstrap.css +0 -5638
  300. package/docs/styles/site.dibs-bootstrap.css +0 -5899
  301. package/docs/styles/site.flatly.css +0 -7147
  302. package/docs/styles/site.journal.css +0 -6973
  303. package/docs/styles/site.lumen.css +0 -7298
  304. package/docs/styles/site.paper.css +0 -7623
  305. package/docs/styles/site.readable.css +0 -6997
  306. package/docs/styles/site.sandstone.css +0 -7035
  307. package/docs/styles/site.simplex.css +0 -7023
  308. package/docs/styles/site.slate.css +0 -7343
  309. package/docs/styles/site.spacelab.css +0 -7055
  310. package/docs/styles/site.superhero.css +0 -7131
  311. package/docs/styles/site.united.css +0 -6895
  312. package/docs/styles/site.yeti.css +0 -7195
  313. package/docs/styles/sunlight.dark.css +0 -345
  314. package/docs/styles/sunlight.default.css +0 -344
@@ -1,2488 +1,3136 @@
1
1
  <!DOCTYPE html>
2
-
3
2
  <html lang="en">
4
3
  <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width">
7
- <title>node-poweredup Class: ColorDistanceSensor</title>
8
4
 
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
13
7
 
14
- <link type="text/css" rel="stylesheet" href="styles/site.simplex.css">
8
+ <title>
9
+ ColorDistanceSensor - Documentation
10
+ </title>
15
11
 
16
- </head>
12
+ <link href="https://www.braintreepayments.com/images/favicon-ccda0b14.png" rel="icon" type="image/png">
17
13
 
18
- <body>
14
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js"></script>
15
+ <script>hljs.initHighlightingOnLoad();</script>
19
16
 
20
- <div class="navbar navbar-default navbar-fixed-top navbar-inverse">
21
- <div class="container">
22
- <div class="navbar-header">
23
- <a class="navbar-brand" href="index.html">node-poweredup</a>
24
- <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25
- <span class="icon-bar"></span>
26
- <span class="icon-bar"></span>
27
- <span class="icon-bar"></span>
28
- </button>
29
- </div>
30
- <div class="navbar-collapse collapse" id="topNavigation">
31
- <ul class="nav navbar-nav">
32
-
33
- <li class="dropdown">
34
- <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
35
- <ul class="dropdown-menu ">
36
- <li><a href="AbsoluteMotor.html">AbsoluteMotor</a></li><li><a href="BaseHub.html">BaseHub</a></li><li><a href="BasicMotor.html">BasicMotor</a></li><li><a href="ColorDistanceSensor.html">ColorDistanceSensor</a></li><li><a href="CurrentSensor.html">CurrentSensor</a></li><li><a href="Device.html">Device</a></li><li><a href="DuploTrainBase.html">DuploTrainBase</a></li><li><a href="DuploTrainBaseColorSensor.html">DuploTrainBaseColorSensor</a></li><li><a href="DuploTrainBaseMotor.html">DuploTrainBaseMotor</a></li><li><a href="DuploTrainBaseSpeaker.html">DuploTrainBaseSpeaker</a></li><li><a href="DuploTraniBaseSpeedometer.html">DuploTraniBaseSpeedometer</a></li><li><a href="Hub.html">Hub</a></li><li><a href="HubLED.html">HubLED</a></li><li><a href="Light.html">Light</a></li><li><a href="LPF2Hub.html">LPF2Hub</a></li><li><a href="Mario.html">Mario</a></li><li><a href="MarioAccelerometer.html">MarioAccelerometer</a></li><li><a href="MarioBarcodeSensor.html">MarioBarcodeSensor</a></li><li><a href="MarioPantsSensor.html">MarioPantsSensor</a></li><li><a href="MediumLinearMotor.html">MediumLinearMotor</a></li><li><a href="MotionSensor.html">MotionSensor</a></li><li><a href="MoveHub.html">MoveHub</a></li><li><a href="MoveHubMediumLinearMotor.html">MoveHubMediumLinearMotor</a></li><li><a href="MoveHubTiltSensor.html">MoveHubTiltSensor</a></li><li><a href="PiezoBuzzer.html">PiezoBuzzer</a></li><li><a href="RemoteControl.html">RemoteControl</a></li><li><a href="RemoteControlButton.html">RemoteControlButton</a></li><li><a href="SimpleMediumLinearMotor.html">SimpleMediumLinearMotor</a></li><li><a href="TachoMotor.html">TachoMotor</a></li><li><a href="TechnicColorSensor.html">TechnicColorSensor</a></li><li><a href="TechnicDistanceSensor.html">TechnicDistanceSensor</a></li><li><a href="TechnicForceSensor.html">TechnicForceSensor</a></li><li><a href="TechnicLargeAngularMotor.html">TechnicLargeAngularMotor</a></li><li><a href="TechnicLargeLinearMotor.html">TechnicLargeLinearMotor</a></li><li><a href="TechnicMediumAngularMotor.html">TechnicMediumAngularMotor</a></li><li><a href="TechnicMediumHub.html">TechnicMediumHub</a></li><li><a href="TechnicMediumHubAccelerometerSensor.html">TechnicMediumHubAccelerometerSensor</a></li><li><a href="TechnicMediumHubGyroSensor.html">TechnicMediumHubGyroSensor</a></li><li><a href="TechnicMediumHubTiltSensor.html">TechnicMediumHubTiltSensor</a></li><li><a href="TechnicXLargeLinearMotor.html">TechnicXLargeLinearMotor</a></li><li><a href="TiltSensor.html">TiltSensor</a></li><li><a href="TrainMotor.html">TrainMotor</a></li><li><a href="VoltageSensor.html">VoltageSensor</a></li><li><a href="WeDo2SmartHub.html">WeDo2SmartHub</a></li>
37
- </ul>
38
- </li>
39
-
40
- <li class="dropdown">
41
- <a href="events.list.html" class="dropdown-toggle" data-toggle="dropdown">Events<b class="caret"></b></a>
42
- <ul class="dropdown-menu ">
43
- <li><a href="AbsoluteMotor.html#event:absolute">AbsoluteMotor#event:absolute</a></li><li><a href="AbsoluteMotor.html#event:rotate">AbsoluteMotor#event:rotate</a></li><li><a href="ColorDistanceSensor.html#event:color">ColorDistanceSensor#event:color</a></li><li><a href="ColorDistanceSensor.html#event:colorAndDistance">ColorDistanceSensor#event:colorAndDistance</a></li><li><a href="ColorDistanceSensor.html#event:distance">ColorDistanceSensor#event:distance</a></li><li><a href="CurrentSensor.html#event:current">CurrentSensor#event:current</a></li><li><a href="DuploTrainBase.html#event:button">DuploTrainBase#event:button</a></li><li><a href="DuploTrainBaseColorSensor.html#event:color">DuploTrainBaseColorSensor#event:color</a></li><li><a href="DuploTrainBaseColorSensor.html#event:reflect">DuploTrainBaseColorSensor#event:reflect</a></li><li><a href="DuploTrainBaseColorSensor.html#event:rgb">DuploTrainBaseColorSensor#event:rgb</a></li><li><a href="DuploTrainBaseSpeedometer.html#event:speed">DuploTrainBaseSpeedometer#event:speed</a></li><li><a href="Hub.html#event:attach">Hub#event:attach</a></li><li><a href="Hub.html#event:button">Hub#event:button</a></li><li><a href="Hub.html#event:detach">Hub#event:detach</a></li><li><a href="Hub.html#event:disconnect">Hub#event:disconnect</a></li><li><a href="LPF2Hub.html#event:button">LPF2Hub#event:button</a></li><li><a href="Mario.html#event:button">Mario#event:button</a></li><li><a href="MarioAccelerometer.html#event:accel">MarioAccelerometer#event:accel</a></li><li><a href="MarioAccelerometer.html#event:gest">MarioAccelerometer#event:gest</a></li><li><a href="MarioBarcodeSensor.html#event:barcode">MarioBarcodeSensor#event:barcode</a></li><li><a href="MarioBarcodeSensor.html#event:rgb">MarioBarcodeSensor#event:rgb</a></li><li><a href="MarioPantsSensor.html#event:pants">MarioPantsSensor#event:pants</a></li><li><a href="MediumLinearMotor.html#event:rotate">MediumLinearMotor#event:rotate</a></li><li><a href="MotionSensor.html#event:distance">MotionSensor#event:distance</a></li><li><a href="MoveHub.html#event:button">MoveHub#event:button</a></li><li><a href="MoveHubMediumLinearMotor.html#event:rotate">MoveHubMediumLinearMotor#event:rotate</a></li><li><a href="MoveHubTiltSensor.html#event:tilt">MoveHubTiltSensor#event:tilt</a></li><li><a href="RemoteControl.html#event:button">RemoteControl#event:button</a></li><li><a href="RemoteControlButton.html#event:button">RemoteControlButton#event:button</a></li><li><a href="TachoMotor.html#event:rotate">TachoMotor#event:rotate</a></li><li><a href="TechnicColorSensor.html#event:ambient">TechnicColorSensor#event:ambient</a></li><li><a href="TechnicColorSensor.html#event:color">TechnicColorSensor#event:color</a></li><li><a href="TechnicColorSensor.html#event:reflect">TechnicColorSensor#event:reflect</a></li><li><a href="TechnicDistanceSensor.html#event:distance">TechnicDistanceSensor#event:distance</a></li><li><a href="TechnicDistanceSensor.html#event:fastDistance">TechnicDistanceSensor#event:fastDistance</a></li><li><a href="TechnicForceSensor.html#event:force">TechnicForceSensor#event:force</a></li><li><a href="TechnicForceSensor.html#event:tapped">TechnicForceSensor#event:tapped</a></li><li><a href="TechnicForceSensor.html#event:touch">TechnicForceSensor#event:touch</a></li><li><a href="TechnicLargeAngularMotor.html#event:absolute">TechnicLargeAngularMotor#event:absolute</a></li><li><a href="TechnicLargeAngularMotor.html#event:rotate">TechnicLargeAngularMotor#event:rotate</a></li><li><a href="TechnicLargeLinearMotor.html#event:absolute">TechnicLargeLinearMotor#event:absolute</a></li><li><a href="TechnicLargeLinearMotor.html#event:rotate">TechnicLargeLinearMotor#event:rotate</a></li><li><a href="TechnicMediumAngularMotor.html#event:absolute">TechnicMediumAngularMotor#event:absolute</a></li><li><a href="TechnicMediumAngularMotor.html#event:rotate">TechnicMediumAngularMotor#event:rotate</a></li><li><a href="TechnicMediumHub.html#event:button">TechnicMediumHub#event:button</a></li><li><a href="TechnicMediumHubAccelerometerSensor.html#event:accel">TechnicMediumHubAccelerometerSensor#event:accel</a></li><li><a href="TechnicMediumHubGyroSensor.html#event:gyro">TechnicMediumHubGyroSensor#event:gyro</a></li><li><a href="TechnicMediumHubTiltSensor.html#event:tilt">TechnicMediumHubTiltSensor#event:tilt</a></li><li><a href="TechnicXLargeLinearMotor.html#event:absolute">TechnicXLargeLinearMotor#event:absolute</a></li><li><a href="TechnicXLargeLinearMotor.html#event:rotate">TechnicXLargeLinearMotor#event:rotate</a></li><li><a href="TiltSensor.html#event:tilt">TiltSensor#event:tilt</a></li><li><a href="VoltageSensor.html#event:voltage">VoltageSensor#event:voltage</a></li><li><a href="WeDo2SmartHub.html#event:button">WeDo2SmartHub#event:button</a></li>
44
- </ul>
45
- </li>
46
-
47
- </ul>
48
-
49
- <div class="col-sm-3 col-md-3">
50
- <form class="navbar-form" role="search">
51
- <div class="input-group">
52
- <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
53
- <div class="input-group-btn">
54
- <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
55
- </div>
56
- </div>
57
- </form>
58
- </div>
59
-
60
- </div>
61
-
62
- </div>
63
- </div>
64
-
65
-
66
- <div class="container" id="toc-content">
67
- <div class="row">
68
-
69
-
70
- <div class="col-md-8">
71
-
72
- <div id="main">
73
-
74
-
75
- <h1 class="page-title">Class: ColorDistanceSensor</h1>
76
- <section>
17
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
77
18
 
78
- <header>
79
-
80
- <h2>
81
- ColorDistanceSensor
82
- </h2>
83
-
84
-
85
- </header>
19
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
20
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
21
+
86
22
 
23
+
87
24
 
88
- <article>
89
- <div class="container-overview">
90
-
91
-
92
- <hr>
93
- <dt>
94
- <h4 class="name" id="ColorDistanceSensor"><span class="type-signature"></span>new ColorDistanceSensor()</h4>
95
-
96
-
97
- </dt>
98
- <dd>
25
+ <!-- start Mixpanel -->
26
+ <script type="text/javascript">(function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&&(b.sessionStorage.setItem("_mpcehash",g),history.replaceState(i.desiredHash||"",e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(".");2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,
27
+ 0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
28
+ for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement("script");b.type="text/javascript";b.async=!0;b.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]);
29
+ mixpanel.init("1919205b2da72e4da3b9b6639b444d59");</script>
30
+ <!-- end Mixpanel -->
31
+ </head>
99
32
 
100
-
33
+ <body>
34
+ <svg style="display: none;">
35
+ <defs>
36
+ <symbol id="linkIcon" fill="#706d77" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
37
+ <path d="M0 0h24v24H0z" fill="none"/>
38
+ <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>
39
+ </symbol>
40
+ </defs>
41
+ </svg>
42
+
43
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
44
+ <label for="nav-trigger" class="navicon-button x">
45
+ <div class="navicon"></div>
46
+ </label>
47
+
48
+ <label for="nav-trigger" class="overlay"></label>
49
+
50
+ <div class="top-nav-wrapper">
51
+ <ul>
52
+ <li >
53
+ <a href="index.html">
54
+
55
+ <svg fill="#6D6D6D" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
56
+ <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
57
+ <path d="M0 0h24v24H0z" fill="none"/>
58
+ </svg>
59
+
60
+
61
+ </a>
62
+ </li>
63
+
64
+
101
65
 
102
-
66
+ </ul>
67
+ </div>
103
68
 
104
-
69
+ <nav>
70
+ <h3 class="reference-title">
71
+ node-poweredup Reference
72
+ </h3>
105
73
 
106
74
 
107
-
108
75
 
76
+ <h3>Classes</h3><ul><li id="AbsoluteMotor-nav"><a href="AbsoluteMotor.html">AbsoluteMotor</a><ul class='methods'><li data-type="method" id="AbsoluteMotor-gotoAngle-nav"><a href="AbsoluteMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="AbsoluteMotor-gotoRealZero-nav"><a href="AbsoluteMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="AbsoluteMotor-resetZero-nav"><a href="AbsoluteMotor.html#resetZero">resetZero</a></li><li data-type="method" id="AbsoluteMotor-rotateByDegrees-nav"><a href="AbsoluteMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="AbsoluteMotor-setAccelerationTime-nav"><a href="AbsoluteMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="AbsoluteMotor-setBrakingStyle-nav"><a href="AbsoluteMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="AbsoluteMotor-setDecelerationTime-nav"><a href="AbsoluteMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="AbsoluteMotor-setMaxPower-nav"><a href="AbsoluteMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="AbsoluteMotor-setSpeed-nav"><a href="AbsoluteMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="BaseHub-nav"><a href="BaseHub.html">BaseHub</a></li><li id="BasicMotor-nav"><a href="BasicMotor.html">BasicMotor</a><ul class='methods'><li data-type="method" id="BasicMotor-brake-nav"><a href="BasicMotor.html#brake">brake</a></li><li data-type="method" id="BasicMotor-rampPower-nav"><a href="BasicMotor.html#rampPower">rampPower</a></li><li data-type="method" id="BasicMotor-setPower-nav"><a href="BasicMotor.html#setPower">setPower</a></li><li data-type="method" id="BasicMotor-stop-nav"><a href="BasicMotor.html#stop">stop</a></li></ul></li><li id="ColorDistanceSensor-nav"><a href="ColorDistanceSensor.html">ColorDistanceSensor</a><ul class='methods'><li data-type="method" id="ColorDistanceSensor-sendPFIRMessage-nav"><a href="ColorDistanceSensor.html#sendPFIRMessage">sendPFIRMessage</a></li><li data-type="method" id="ColorDistanceSensor-setColor-nav"><a href="ColorDistanceSensor.html#setColor">setColor</a></li><li data-type="method" id="ColorDistanceSensor-setDistanceCount-nav"><a href="ColorDistanceSensor.html#setDistanceCount">setDistanceCount</a></li><li data-type="method" id="ColorDistanceSensor-setPFExtendedChannel-nav"><a href="ColorDistanceSensor.html#setPFExtendedChannel">setPFExtendedChannel</a></li><li data-type="method" id="ColorDistanceSensor-setPFPower-nav"><a href="ColorDistanceSensor.html#setPFPower">setPFPower</a></li><li data-type="method" id="ColorDistanceSensor-startPFMotors-nav"><a href="ColorDistanceSensor.html#startPFMotors">startPFMotors</a></li></ul></li><li id="CurrentSensor-nav"><a href="CurrentSensor.html">CurrentSensor</a></li><li id="Device-nav"><a href="Device.html">Device</a></li><li id="DuploTrainBase-nav"><a href="DuploTrainBase.html">DuploTrainBase</a><ul class='methods'><li data-type="method" id="DuploTrainBase-createVirtualPort-nav"><a href="DuploTrainBase.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="DuploTrainBase-setName-nav"><a href="DuploTrainBase.html#setName">setName</a></li><li data-type="method" id="DuploTrainBase-shutdown-nav"><a href="DuploTrainBase.html#shutdown">shutdown</a></li></ul></li><li id="DuploTrainBaseColorSensor-nav"><a href="DuploTrainBaseColorSensor.html">DuploTrainBaseColorSensor</a></li><li id="DuploTrainBaseMotor-nav"><a href="DuploTrainBaseMotor.html">DuploTrainBaseMotor</a><ul class='methods'><li data-type="method" id="DuploTrainBaseMotor-brake-nav"><a href="DuploTrainBaseMotor.html#brake">brake</a></li><li data-type="method" id="DuploTrainBaseMotor-rampPower-nav"><a href="DuploTrainBaseMotor.html#rampPower">rampPower</a></li><li data-type="method" id="DuploTrainBaseMotor-setPower-nav"><a href="DuploTrainBaseMotor.html#setPower">setPower</a></li><li data-type="method" id="DuploTrainBaseMotor-stop-nav"><a href="DuploTrainBaseMotor.html#stop">stop</a></li></ul></li><li id="DuploTrainBaseSpeaker-nav"><a href="DuploTrainBaseSpeaker.html">DuploTrainBaseSpeaker</a><ul class='methods'><li data-type="method" id="DuploTrainBaseSpeaker-playSound-nav"><a href="DuploTrainBaseSpeaker.html#playSound">playSound</a></li><li data-type="method" id="DuploTrainBaseSpeaker-playTone-nav"><a href="DuploTrainBaseSpeaker.html#playTone">playTone</a></li></ul></li><li id="DuploTraniBaseSpeedometer-nav"><a href="DuploTraniBaseSpeedometer.html">DuploTraniBaseSpeedometer</a></li><li id="Hub-nav"><a href="Hub.html">Hub</a><ul class='methods'><li data-type="method" id="Hub-connect-nav"><a href="Hub.html#connect">connect</a></li><li data-type="method" id="Hub-createVirtualPort-nav"><a href="Hub.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="Hub-disconnect-nav"><a href="Hub.html#disconnect">disconnect</a></li><li data-type="method" id="Hub-getDeviceAtPort-nav"><a href="Hub.html#getDeviceAtPort">getDeviceAtPort</a></li><li data-type="method" id="Hub-getDevices-nav"><a href="Hub.html#getDevices">getDevices</a></li><li data-type="method" id="Hub-getDevicesByType-nav"><a href="Hub.html#getDevicesByType">getDevicesByType</a></li><li data-type="method" id="Hub-setName-nav"><a href="Hub.html#setName">setName</a></li><li data-type="method" id="Hub-shutdown-nav"><a href="Hub.html#shutdown">shutdown</a></li><li data-type="method" id="Hub-sleep-nav"><a href="Hub.html#sleep">sleep</a></li><li data-type="method" id="Hub-wait-nav"><a href="Hub.html#wait">wait</a></li><li data-type="method" id="Hub-waitForDeviceAtPort-nav"><a href="Hub.html#waitForDeviceAtPort">waitForDeviceAtPort</a></li><li data-type="method" id="Hub-waitForDeviceByType-nav"><a href="Hub.html#waitForDeviceByType">waitForDeviceByType</a></li></ul></li><li id="HubLED-nav"><a href="HubLED.html">HubLED</a><ul class='methods'><li data-type="method" id="HubLED-setColor-nav"><a href="HubLED.html#setColor">setColor</a></li><li data-type="method" id="HubLED-setRGB-nav"><a href="HubLED.html#setRGB">setRGB</a></li></ul></li><li id="Light-nav"><a href="Light.html">Light</a><ul class='methods'><li data-type="method" id="Light-rampBrightness-nav"><a href="Light.html#rampBrightness">rampBrightness</a></li><li data-type="method" id="Light-setBrightness-nav"><a href="Light.html#setBrightness">setBrightness</a></li></ul></li><li id="LPF2Hub-nav"><a href="LPF2Hub.html">LPF2Hub</a><ul class='methods'><li data-type="method" id="LPF2Hub-createVirtualPort-nav"><a href="LPF2Hub.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="LPF2Hub-setName-nav"><a href="LPF2Hub.html#setName">setName</a></li><li data-type="method" id="LPF2Hub-shutdown-nav"><a href="LPF2Hub.html#shutdown">shutdown</a></li></ul></li><li id="Mario-nav"><a href="Mario.html">Mario</a><ul class='methods'><li data-type="method" id="Mario-createVirtualPort-nav"><a href="Mario.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="Mario-setName-nav"><a href="Mario.html#setName">setName</a></li><li data-type="method" id="Mario-shutdown-nav"><a href="Mario.html#shutdown">shutdown</a></li></ul></li><li id="MarioAccelerometer-nav"><a href="MarioAccelerometer.html">MarioAccelerometer</a></li><li id="MarioBarcodeSensor-nav"><a href="MarioBarcodeSensor.html">MarioBarcodeSensor</a></li><li id="MarioPantsSensor-nav"><a href="MarioPantsSensor.html">MarioPantsSensor</a></li><li id="MediumLinearMotor-nav"><a href="MediumLinearMotor.html">MediumLinearMotor</a><ul class='methods'><li data-type="method" id="MediumLinearMotor-rotateByDegrees-nav"><a href="MediumLinearMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="MediumLinearMotor-setAccelerationTime-nav"><a href="MediumLinearMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="MediumLinearMotor-setBrakingStyle-nav"><a href="MediumLinearMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="MediumLinearMotor-setDecelerationTime-nav"><a href="MediumLinearMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="MediumLinearMotor-setMaxPower-nav"><a href="MediumLinearMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="MediumLinearMotor-setSpeed-nav"><a href="MediumLinearMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="MotionSensor-nav"><a href="MotionSensor.html">MotionSensor</a></li><li id="MoveHub-nav"><a href="MoveHub.html">MoveHub</a><ul class='methods'><li data-type="method" id="MoveHub-createVirtualPort-nav"><a href="MoveHub.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="MoveHub-setName-nav"><a href="MoveHub.html#setName">setName</a></li><li data-type="method" id="MoveHub-shutdown-nav"><a href="MoveHub.html#shutdown">shutdown</a></li></ul></li><li id="MoveHubMediumLinearMotor-nav"><a href="MoveHubMediumLinearMotor.html">MoveHubMediumLinearMotor</a><ul class='methods'><li data-type="method" id="MoveHubMediumLinearMotor-rotateByDegrees-nav"><a href="MoveHubMediumLinearMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="MoveHubMediumLinearMotor-setAccelerationTime-nav"><a href="MoveHubMediumLinearMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="MoveHubMediumLinearMotor-setBrakingStyle-nav"><a href="MoveHubMediumLinearMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="MoveHubMediumLinearMotor-setDecelerationTime-nav"><a href="MoveHubMediumLinearMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="MoveHubMediumLinearMotor-setMaxPower-nav"><a href="MoveHubMediumLinearMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="MoveHubMediumLinearMotor-setSpeed-nav"><a href="MoveHubMediumLinearMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="MoveHubTiltSensor-nav"><a href="MoveHubTiltSensor.html">MoveHubTiltSensor</a></li><li id="PiezoBuzzer-nav"><a href="PiezoBuzzer.html">PiezoBuzzer</a><ul class='methods'><li data-type="method" id="PiezoBuzzer-playTone-nav"><a href="PiezoBuzzer.html#playTone">playTone</a></li></ul></li><li id="PoweredUP-nav"><a href="PoweredUP.html">PoweredUP</a><ul class='methods'><li data-type="method" id="PoweredUP-getHubByPrimaryMACAddress-nav"><a href="PoweredUP.html#getHubByPrimaryMACAddress">getHubByPrimaryMACAddress</a></li><li data-type="method" id="PoweredUP-getHubByPrimaryMACAddress-nav"><a href="PoweredUP.html#getHubByPrimaryMACAddress">getHubByPrimaryMACAddress</a></li><li data-type="method" id="PoweredUP-getHubByUUID-nav"><a href="PoweredUP.html#getHubByUUID">getHubByUUID</a></li><li data-type="method" id="PoweredUP-getHubByUUID-nav"><a href="PoweredUP.html#getHubByUUID">getHubByUUID</a></li><li data-type="method" id="PoweredUP-getHubs-nav"><a href="PoweredUP.html#getHubs">getHubs</a></li><li data-type="method" id="PoweredUP-getHubs-nav"><a href="PoweredUP.html#getHubs">getHubs</a></li><li data-type="method" id="PoweredUP-getHubsByName-nav"><a href="PoweredUP.html#getHubsByName">getHubsByName</a></li><li data-type="method" id="PoweredUP-getHubsByName-nav"><a href="PoweredUP.html#getHubsByName">getHubsByName</a></li><li data-type="method" id="PoweredUP-getHubsByType-nav"><a href="PoweredUP.html#getHubsByType">getHubsByType</a></li><li data-type="method" id="PoweredUP-getHubsByType-nav"><a href="PoweredUP.html#getHubsByType">getHubsByType</a></li><li data-type="method" id="PoweredUP-scan-nav"><a href="PoweredUP.html#scan">scan</a></li><li data-type="method" id="PoweredUP-scan-nav"><a href="PoweredUP.html#scan">scan</a></li><li data-type="method" id="PoweredUP-stop-nav"><a href="PoweredUP.html#stop">stop</a></li></ul></li><li id="RemoteControl-nav"><a href="RemoteControl.html">RemoteControl</a><ul class='methods'><li data-type="method" id="RemoteControl-createVirtualPort-nav"><a href="RemoteControl.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="RemoteControl-setName-nav"><a href="RemoteControl.html#setName">setName</a></li><li data-type="method" id="RemoteControl-shutdown-nav"><a href="RemoteControl.html#shutdown">shutdown</a></li></ul></li><li id="RemoteControlButton-nav"><a href="RemoteControlButton.html">RemoteControlButton</a></li><li id="SimpleMediumLinearMotor-nav"><a href="SimpleMediumLinearMotor.html">SimpleMediumLinearMotor</a></li><li id="TachoMotor-nav"><a href="TachoMotor.html">TachoMotor</a><ul class='methods'><li data-type="method" id="TachoMotor-brake-nav"><a href="TachoMotor.html#brake">brake</a></li><li data-type="method" id="TachoMotor-rampPower-nav"><a href="TachoMotor.html#rampPower">rampPower</a></li><li data-type="method" id="TachoMotor-rotateByDegrees-nav"><a href="TachoMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TachoMotor-setAccelerationTime-nav"><a href="TachoMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TachoMotor-setBrakingStyle-nav"><a href="TachoMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TachoMotor-setDecelerationTime-nav"><a href="TachoMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TachoMotor-setMaxPower-nav"><a href="TachoMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TachoMotor-setPower-nav"><a href="TachoMotor.html#setPower">setPower</a></li><li data-type="method" id="TachoMotor-setSpeed-nav"><a href="TachoMotor.html#setSpeed">setSpeed</a></li><li data-type="method" id="TachoMotor-stop-nav"><a href="TachoMotor.html#stop">stop</a></li></ul></li><li id="Technic3x3ColorLightMatrix-nav"><a href="Technic3x3ColorLightMatrix.html">Technic3x3ColorLightMatrix</a><ul class='methods'><li data-type="method" id="Technic3x3ColorLightMatrix-setMatrix-nav"><a href="Technic3x3ColorLightMatrix.html#setMatrix">setMatrix</a></li></ul></li><li id="TechnicColorSensor-nav"><a href="TechnicColorSensor.html">TechnicColorSensor</a><ul class='methods'><li data-type="method" id="TechnicColorSensor-setBrightness-nav"><a href="TechnicColorSensor.html#setBrightness">setBrightness</a></li></ul></li><li id="TechnicDistanceSensor-nav"><a href="TechnicDistanceSensor.html">TechnicDistanceSensor</a><ul class='methods'><li data-type="method" id="TechnicDistanceSensor-setBrightness-nav"><a href="TechnicDistanceSensor.html#setBrightness">setBrightness</a></li></ul></li><li id="TechnicForceSensor-nav"><a href="TechnicForceSensor.html">TechnicForceSensor</a></li><li id="TechnicLargeAngularMotor-nav"><a href="TechnicLargeAngularMotor.html">TechnicLargeAngularMotor</a><ul class='methods'><li data-type="method" id="TechnicLargeAngularMotor-gotoAngle-nav"><a href="TechnicLargeAngularMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="TechnicLargeAngularMotor-gotoRealZero-nav"><a href="TechnicLargeAngularMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="TechnicLargeAngularMotor-resetZero-nav"><a href="TechnicLargeAngularMotor.html#resetZero">resetZero</a></li><li data-type="method" id="TechnicLargeAngularMotor-rotateByDegrees-nav"><a href="TechnicLargeAngularMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TechnicLargeAngularMotor-setAccelerationTime-nav"><a href="TechnicLargeAngularMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TechnicLargeAngularMotor-setBrakingStyle-nav"><a href="TechnicLargeAngularMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TechnicLargeAngularMotor-setDecelerationTime-nav"><a href="TechnicLargeAngularMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TechnicLargeAngularMotor-setMaxPower-nav"><a href="TechnicLargeAngularMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TechnicLargeAngularMotor-setSpeed-nav"><a href="TechnicLargeAngularMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="TechnicLargeLinearMotor-nav"><a href="TechnicLargeLinearMotor.html">TechnicLargeLinearMotor</a><ul class='methods'><li data-type="method" id="TechnicLargeLinearMotor-gotoAngle-nav"><a href="TechnicLargeLinearMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="TechnicLargeLinearMotor-gotoRealZero-nav"><a href="TechnicLargeLinearMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="TechnicLargeLinearMotor-resetZero-nav"><a href="TechnicLargeLinearMotor.html#resetZero">resetZero</a></li><li data-type="method" id="TechnicLargeLinearMotor-rotateByDegrees-nav"><a href="TechnicLargeLinearMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TechnicLargeLinearMotor-setAccelerationTime-nav"><a href="TechnicLargeLinearMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TechnicLargeLinearMotor-setBrakingStyle-nav"><a href="TechnicLargeLinearMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TechnicLargeLinearMotor-setDecelerationTime-nav"><a href="TechnicLargeLinearMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TechnicLargeLinearMotor-setMaxPower-nav"><a href="TechnicLargeLinearMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TechnicLargeLinearMotor-setSpeed-nav"><a href="TechnicLargeLinearMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="TechnicMediumAngularMotor-nav"><a href="TechnicMediumAngularMotor.html">TechnicMediumAngularMotor</a><ul class='methods'><li data-type="method" id="TechnicMediumAngularMotor-gotoAngle-nav"><a href="TechnicMediumAngularMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="TechnicMediumAngularMotor-gotoRealZero-nav"><a href="TechnicMediumAngularMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="TechnicMediumAngularMotor-resetZero-nav"><a href="TechnicMediumAngularMotor.html#resetZero">resetZero</a></li><li data-type="method" id="TechnicMediumAngularMotor-rotateByDegrees-nav"><a href="TechnicMediumAngularMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TechnicMediumAngularMotor-setAccelerationTime-nav"><a href="TechnicMediumAngularMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TechnicMediumAngularMotor-setBrakingStyle-nav"><a href="TechnicMediumAngularMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TechnicMediumAngularMotor-setDecelerationTime-nav"><a href="TechnicMediumAngularMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TechnicMediumAngularMotor-setMaxPower-nav"><a href="TechnicMediumAngularMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TechnicMediumAngularMotor-setSpeed-nav"><a href="TechnicMediumAngularMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="TechnicMediumHub-nav"><a href="TechnicMediumHub.html">TechnicMediumHub</a><ul class='methods'><li data-type="method" id="TechnicMediumHub-createVirtualPort-nav"><a href="TechnicMediumHub.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="TechnicMediumHub-setName-nav"><a href="TechnicMediumHub.html#setName">setName</a></li><li data-type="method" id="TechnicMediumHub-shutdown-nav"><a href="TechnicMediumHub.html#shutdown">shutdown</a></li></ul></li><li id="TechnicMediumHubAccelerometerSensor-nav"><a href="TechnicMediumHubAccelerometerSensor.html">TechnicMediumHubAccelerometerSensor</a></li><li id="TechnicMediumHubGyroSensor-nav"><a href="TechnicMediumHubGyroSensor.html">TechnicMediumHubGyroSensor</a></li><li id="TechnicMediumHubTiltSensor-nav"><a href="TechnicMediumHubTiltSensor.html">TechnicMediumHubTiltSensor</a><ul class='methods'><li data-type="method" id="TechnicMediumHubTiltSensor-setImpactCount-nav"><a href="TechnicMediumHubTiltSensor.html#setImpactCount">setImpactCount</a></li><li data-type="method" id="TechnicMediumHubTiltSensor-setImpactHoldoff-nav"><a href="TechnicMediumHubTiltSensor.html#setImpactHoldoff">setImpactHoldoff</a></li><li data-type="method" id="TechnicMediumHubTiltSensor-setImpactThreshold-nav"><a href="TechnicMediumHubTiltSensor.html#setImpactThreshold">setImpactThreshold</a></li></ul></li><li id="TechnicSmallAngularMotor-nav"><a href="TechnicSmallAngularMotor.html">TechnicSmallAngularMotor</a><ul class='methods'><li data-type="method" id="TechnicSmallAngularMotor-gotoAngle-nav"><a href="TechnicSmallAngularMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="TechnicSmallAngularMotor-gotoRealZero-nav"><a href="TechnicSmallAngularMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="TechnicSmallAngularMotor-resetZero-nav"><a href="TechnicSmallAngularMotor.html#resetZero">resetZero</a></li><li data-type="method" id="TechnicSmallAngularMotor-rotateByDegrees-nav"><a href="TechnicSmallAngularMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TechnicSmallAngularMotor-setAccelerationTime-nav"><a href="TechnicSmallAngularMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TechnicSmallAngularMotor-setBrakingStyle-nav"><a href="TechnicSmallAngularMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TechnicSmallAngularMotor-setDecelerationTime-nav"><a href="TechnicSmallAngularMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TechnicSmallAngularMotor-setMaxPower-nav"><a href="TechnicSmallAngularMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TechnicSmallAngularMotor-setSpeed-nav"><a href="TechnicSmallAngularMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="TechnicXLargeLinearMotor-nav"><a href="TechnicXLargeLinearMotor.html">TechnicXLargeLinearMotor</a><ul class='methods'><li data-type="method" id="TechnicXLargeLinearMotor-gotoAngle-nav"><a href="TechnicXLargeLinearMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="TechnicXLargeLinearMotor-gotoRealZero-nav"><a href="TechnicXLargeLinearMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="TechnicXLargeLinearMotor-resetZero-nav"><a href="TechnicXLargeLinearMotor.html#resetZero">resetZero</a></li><li data-type="method" id="TechnicXLargeLinearMotor-rotateByDegrees-nav"><a href="TechnicXLargeLinearMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TechnicXLargeLinearMotor-setAccelerationTime-nav"><a href="TechnicXLargeLinearMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TechnicXLargeLinearMotor-setBrakingStyle-nav"><a href="TechnicXLargeLinearMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TechnicXLargeLinearMotor-setDecelerationTime-nav"><a href="TechnicXLargeLinearMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TechnicXLargeLinearMotor-setMaxPower-nav"><a href="TechnicXLargeLinearMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TechnicXLargeLinearMotor-setSpeed-nav"><a href="TechnicXLargeLinearMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="TiltSensor-nav"><a href="TiltSensor.html">TiltSensor</a></li><li id="TrainMotor-nav"><a href="TrainMotor.html">TrainMotor</a><ul class='methods'><li data-type="method" id="TrainMotor-brake-nav"><a href="TrainMotor.html#brake">brake</a></li><li data-type="method" id="TrainMotor-rampPower-nav"><a href="TrainMotor.html#rampPower">rampPower</a></li><li data-type="method" id="TrainMotor-setPower-nav"><a href="TrainMotor.html#setPower">setPower</a></li><li data-type="method" id="TrainMotor-stop-nav"><a href="TrainMotor.html#stop">stop</a></li></ul></li><li id="VoltageSensor-nav"><a href="VoltageSensor.html">VoltageSensor</a></li><li id="WeDo2SmartHub-nav"><a href="WeDo2SmartHub.html">WeDo2SmartHub</a><ul class='methods'><li data-type="method" id="WeDo2SmartHub-setName-nav"><a href="WeDo2SmartHub.html#setName">setName</a></li><li data-type="method" id="WeDo2SmartHub-shutdown-nav"><a href="WeDo2SmartHub.html#shutdown">shutdown</a></li></ul></li></ul><h3 id="global-nav"><a href="global.html">Global</a></h3>
77
+ </nav>
78
+
79
+ <div id="main">
109
80
 
110
- <dl class="details">
81
+ <h1 class="page-title">
82
+ ColorDistanceSensor
83
+ </h1>
111
84
 
112
85
 
113
-
114
-
115
-
116
-
117
-
118
-
119
86
 
120
87
 
88
+ <section>
89
+ <header>
121
90
 
91
+ <h2>
92
+
93
+ ColorDistanceSensor
94
+
95
+ </h2>
122
96
 
97
+
123
98
 
99
+ </header>
124
100
 
125
-
101
+ <article>
102
+ <div class="container-overview">
103
+
104
+
126
105
 
127
-
128
106
 
129
-
107
+
130
108
 
131
-
109
+ <span class='name-container'>
110
+ <a class="link-icon" href="#ColorDistanceSensor">
111
+ <svg height="20" width="20" style="fill: black;">
112
+ <use xlink:href="#linkIcon"></use>
113
+ </svg>
114
+ </a>
115
+ <h4 class="name" id="ColorDistanceSensor">
116
+ <span class="type-signature"></span>new ColorDistanceSensor<span class="signature">()</span><span class="type-signature"></span>
117
+ </h4>
118
+ </span>
132
119
 
133
-
120
+
134
121
 
135
-
136
122
 
137
123
 
138
124
 
139
-
140
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
141
- <dd class="tag-source">
142
- <ul class="dummy">
143
- <li>
144
- <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>,
145
- <a href="devices_colordistancesensor.js.html#sunlight-1-line-25">line 25</a>
146
- </li>
147
- </ul>
148
- </dd>
149
-
150
125
 
151
-
152
126
 
153
-
154
127
 
155
-
156
- </dl>
157
128
 
158
129
 
159
-
160
130
 
161
-
162
131
 
163
-
164
132
 
165
-
133
+ <dl class="details">
166
134
 
167
-
135
+
168
136
 
169
-
137
+
170
138
 
171
-
172
- </dd>
139
+
173
140
 
174
-
175
- </div>
141
+
176
142
 
177
-
178
- <h3 class="subsection-title">Extends</h3>
143
+
179
144
 
180
-
145
+
181
146
 
147
+
182
148
 
183
- <ul>
184
- <li><a href="Device.html">Device</a></li>
185
- </ul>
149
+
186
150
 
151
+
187
152
 
188
-
153
+
189
154
 
190
-
155
+
191
156
 
192
-
157
+
193
158
 
194
-
159
+
160
+ <dt class="tag-source">Source:</dt>
161
+ <dd class="tag-source">
162
+ <ul class="dummy">
163
+ <li>
164
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line26">line 26</a>
165
+ </li>
166
+ </ul>
167
+ </dd>
168
+
195
169
 
196
-
170
+
197
171
 
198
-
199
- <h3 class="subsection-title">Members</h3>
172
+
200
173
 
201
- <dl>
202
-
203
- <hr>
204
- <dt class="name" id="connected">
205
- <h4 id="connected"><span class="type-signature">&lt;readonly> </span>connected<span class="type-signature"></span></h4>
174
+
175
+ </dl>
206
176
 
207
-
208
- </dt>
209
- <dd>
210
-
211
177
 
212
-
213
178
 
214
-
215
- <dl class="details">
216
-
217
179
 
218
- <h5 class="subsection-title">Properties:</h5>
219
180
 
220
- <dl>
221
181
 
222
- <table class="props table table-striped">
223
- <thead>
224
- <tr>
225
-
226
- <th>Name</th>
227
-
228
182
 
229
- <th>Type</th>
230
183
 
231
-
232
184
 
233
-
234
185
 
235
- <th class="last">Description</th>
236
- </tr>
237
- </thead>
238
186
 
239
- <tbody>
240
-
241
187
 
242
- <tr>
243
-
244
- <td class="name"><code>connected</code></td>
245
-
246
188
 
247
- <td class="type">
248
-
249
-
250
- <span class="param-type">boolean</span>
251
189
 
190
+
191
+ </div>
252
192
 
193
+
194
+ <h3 class="subsection-title">Extends</h3>
253
195
 
254
-
255
- </td>
196
+
256
197
 
257
-
258
198
 
259
-
199
+ <ul>
200
+ <li><a href="Device.html">Device</a></li>
201
+ </ul>
260
202
 
261
- <td class="description last"><p>Check if the device is still attached.</p></td>
262
- </tr>
263
203
 
264
204
 
265
- </tbody>
266
- </table>
267
- </dl>
268
205
 
269
206
 
270
207
 
271
-
272
-
273
-
274
-
275
-
276
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
277
- <dd class="inherited-from">
278
- <ul class="dummy">
279
- <li>
280
- <a href="Device.html#connected">Device#connected</a>
281
- </li>
282
- </ul>
283
- </dd>
284
-
285
-
286
208
 
287
209
 
288
-
210
+
289
211
 
290
212
 
291
213
 
292
214
 
215
+ <h3 class="subsection-title">Members</h3>
293
216
 
294
-
217
+
218
+
295
219
 
296
-
220
+ <h4 class="name" id="connected">
221
+ <span class="type-signature">(readonly) </span>connected<span class="type-signature"></span>
222
+ </h4>
297
223
 
298
-
299
224
 
300
-
301
225
 
302
-
303
226
 
304
227
 
305
228
 
306
-
307
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
308
- <dd class="tag-source">
309
- <ul class="dummy">
310
- <li>
311
- <a href="devices_device.js.html">devices/device.js</a>,
312
- <a href="devices_device.js.html#sunlight-1-line-75">line 75</a>
313
- </li>
314
- </ul>
315
- </dd>
316
-
317
229
 
318
-
230
+ <h5 class="subsection-title">Properties:</h5>
319
231
 
320
-
232
+
321
233
 
322
-
323
- </dl>
234
+ <table class="props">
235
+ <thead>
236
+ <tr>
237
+
238
+ <th>Name</th>
239
+
324
240
 
241
+ <th>Type</th>
325
242
 
326
-
327
- </dd>
243
+
328
244
 
329
-
330
-
331
- <hr>
332
- <dt class="name" id="hub">
333
- <h4 id="hub"><span class="type-signature">&lt;readonly> </span>hub<span class="type-signature"></span></h4>
245
+
334
246
 
335
-
336
- </dt>
337
- <dd>
338
-
247
+ <th class="last">Description</th>
248
+ </tr>
249
+ </thead>
339
250
 
251
+ <tbody>
340
252
 
341
253
 
342
-
343
- <dl class="details">
344
-
254
+ <tr>
255
+
256
+ <td class="name"><code>connected</code></td>
257
+
258
+
259
+ <td class="type">
260
+
261
+
262
+ <span class="param-type">
263
+ boolean
264
+ </span>
345
265
 
346
- <h5 class="subsection-title">Properties:</h5>
266
+
347
267
 
348
- <dl>
349
268
 
350
- <table class="props table table-striped">
351
- <thead>
352
- <tr>
353
-
354
- <th>Name</th>
355
269
 
356
-
357
- <th>Type</th>
270
+ </td>
358
271
 
359
272
 
360
273
 
361
274
 
362
275
 
363
- <th class="last">Description</th>
276
+ <td class="description last">
277
+ <p>Check if the device is still attached.</p>
278
+ </td>
364
279
  </tr>
365
- </thead>
366
-
367
- <tbody>
368
-
369
280
 
370
- <tr>
371
-
372
- <td class="name"><code>hub</code></td>
373
-
281
+
282
+ </tbody>
283
+ </table>
374
284
 
375
- <td class="type">
376
-
377
-
378
- <span class="param-type"><a href="Hub.html">Hub</a></span>
379
285
 
380
286
 
381
287
 
382
-
383
- </td>
288
+ <dl class="details">
384
289
 
385
-
290
+
386
291
 
387
-
292
+
388
293
 
389
- <td class="description last"><p>The Hub the device is attached to.</p></td>
390
- </tr>
294
+
295
+ <dt class="inherited-from">Inherited From:</dt>
296
+ <dd class="inherited-from">
297
+ <ul class="dummy">
298
+ <li>
299
+ <a href="Device.html#connected">Device#connected</a>
300
+ </li>
301
+ </ul>
302
+ </dd>
303
+
391
304
 
392
-
393
- </tbody>
394
- </table>
395
- </dl>
305
+
396
306
 
397
-
307
+
398
308
 
399
-
309
+
400
310
 
401
-
311
+
402
312
 
403
-
404
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
405
- <dd class="inherited-from">
406
- <ul class="dummy">
407
- <li>
408
- <a href="Device.html#hub">Device#hub</a>
409
- </li>
410
- </ul>
411
- </dd>
412
-
313
+
413
314
 
414
-
315
+
415
316
 
416
-
317
+
417
318
 
418
-
319
+
419
320
 
420
-
321
+
421
322
 
422
-
323
+
324
+ <dt class="tag-source">Source:</dt>
325
+ <dd class="tag-source">
326
+ <ul class="dummy">
327
+ <li>
328
+ <a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line76">line 76</a>
329
+ </li>
330
+ </ul>
331
+ </dd>
332
+
423
333
 
424
-
334
+
425
335
 
426
-
336
+
427
337
 
428
-
338
+
339
+ </dl>
429
340
 
430
-
431
341
 
432
342
 
433
343
 
434
-
435
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
436
- <dd class="tag-source">
437
- <ul class="dummy">
438
- <li>
439
- <a href="devices_device.js.html">devices/device.js</a>,
440
- <a href="devices_device.js.html#sunlight-1-line-82">line 82</a>
441
- </li>
442
- </ul>
443
- </dd>
444
-
445
344
 
446
-
447
345
 
448
-
346
+
347
+
348
+
449
349
 
450
-
451
- </dl>
350
+ <h4 class="name" id="hub">
351
+ <span class="type-signature">(readonly) </span>hub<span class="type-signature"></span>
352
+ </h4>
452
353
 
453
354
 
454
-
455
- </dd>
456
355
 
457
-
458
-
459
- <hr>
460
- <dt class="name" id="isVirtualPort">
461
- <h4 id="isVirtualPort"><span class="type-signature">&lt;readonly> </span>isVirtualPort<span class="type-signature"></span></h4>
462
356
 
463
-
464
- </dt>
465
- <dd>
466
-
467
357
 
468
-
469
358
 
470
-
471
- <dl class="details">
472
-
473
359
 
474
- <h5 class="subsection-title">Properties:</h5>
360
+ <h5 class="subsection-title">Properties:</h5>
475
361
 
476
- <dl>
362
+
477
363
 
478
- <table class="props table table-striped">
479
- <thead>
364
+ <table class="props">
365
+ <thead>
480
366
  <tr>
481
-
367
+
482
368
  <th>Name</th>
483
-
369
+
484
370
 
485
- <th>Type</th>
371
+ <th>Type</th>
486
372
 
487
-
373
+
488
374
 
489
-
375
+
490
376
 
491
- <th class="last">Description</th>
377
+ <th class="last">Description</th>
492
378
  </tr>
493
- </thead>
379
+ </thead>
494
380
 
495
- <tbody>
381
+ <tbody>
496
382
 
497
383
 
498
- <tr>
499
-
500
- <td class="name"><code>isVirtualPort</code></td>
501
-
384
+ <tr>
385
+
386
+ <td class="name"><code>hub</code></td>
387
+
502
388
 
503
- <td class="type">
504
-
505
-
506
- <span class="param-type">boolean</span>
389
+ <td class="type">
390
+
391
+
392
+ <span class="param-type">
393
+ <a href="Hub.html">Hub</a>
394
+ </span>
507
395
 
396
+
508
397
 
509
398
 
510
-
511
- </td>
399
+
400
+ </td>
512
401
 
513
-
402
+
514
403
 
515
-
404
+
516
405
 
517
- <td class="description last"><p>Is this device attached to a virtual port (ie. a combined device)</p></td>
518
- </tr>
406
+ <td class="description last">
407
+ <p>The Hub the device is attached to.</p>
408
+ </td>
409
+ </tr>
519
410
 
520
-
521
- </tbody>
411
+
412
+ </tbody>
522
413
  </table>
523
- </dl>
524
414
 
525
-
526
415
 
527
-
528
416
 
529
-
530
417
 
531
-
532
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
533
- <dd class="inherited-from">
534
- <ul class="dummy">
535
- <li>
536
- <a href="Device.html#isVirtualPort">Device#isVirtualPort</a>
537
- </li>
538
- </ul>
539
- </dd>
540
-
418
+ <dl class="details">
541
419
 
542
-
420
+
543
421
 
544
-
422
+
545
423
 
546
-
424
+
425
+ <dt class="inherited-from">Inherited From:</dt>
426
+ <dd class="inherited-from">
427
+ <ul class="dummy">
428
+ <li>
429
+ <a href="Device.html#hub">Device#hub</a>
430
+ </li>
431
+ </ul>
432
+ </dd>
433
+
547
434
 
548
-
435
+
436
+
437
+
549
438
 
550
-
439
+
551
440
 
552
-
441
+
553
442
 
554
-
443
+
555
444
 
556
-
445
+
557
446
 
558
-
447
+
559
448
 
449
+
560
450
 
451
+
561
452
 
562
-
563
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
564
- <dd class="tag-source">
565
- <ul class="dummy">
566
- <li>
567
- <a href="devices_device.js.html">devices/device.js</a>,
568
- <a href="devices_device.js.html#sunlight-1-line-119">line 119</a>
569
- </li>
570
- </ul>
571
- </dd>
572
-
453
+
454
+ <dt class="tag-source">Source:</dt>
455
+ <dd class="tag-source">
456
+ <ul class="dummy">
457
+ <li>
458
+ <a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line83">line 83</a>
459
+ </li>
460
+ </ul>
461
+ </dd>
462
+
573
463
 
574
-
464
+
575
465
 
576
-
466
+
577
467
 
578
-
468
+
579
469
  </dl>
580
470
 
581
471
 
582
-
583
- </dd>
584
472
 
473
+
474
+
475
+
476
+
585
477
 
586
478
 
587
- <hr>
588
- <dt class="name" id="mode">
589
- <h4 id="mode"><span class="type-signature">&lt;readonly> </span>mode<span class="type-signature"></span></h4>
590
479
 
591
-
592
- </dt>
593
- <dd>
594
-
480
+ <h4 class="name" id="isVirtualPort">
481
+ <span class="type-signature">(readonly) </span>isVirtualPort<span class="type-signature"></span>
482
+ </h4>
483
+
484
+
485
+
595
486
 
596
-
597
487
 
598
-
599
- <dl class="details">
600
-
601
488
 
602
- <h5 class="subsection-title">Properties:</h5>
603
489
 
604
- <dl>
490
+ <h5 class="subsection-title">Properties:</h5>
605
491
 
606
- <table class="props table table-striped">
607
- <thead>
492
+
493
+
494
+ <table class="props">
495
+ <thead>
608
496
  <tr>
609
-
497
+
610
498
  <th>Name</th>
611
-
499
+
612
500
 
613
- <th>Type</th>
501
+ <th>Type</th>
614
502
 
615
-
503
+
616
504
 
617
-
505
+
618
506
 
619
- <th class="last">Description</th>
507
+ <th class="last">Description</th>
620
508
  </tr>
621
- </thead>
509
+ </thead>
622
510
 
623
- <tbody>
511
+ <tbody>
624
512
 
625
513
 
626
- <tr>
627
-
628
- <td class="name"><code>mode</code></td>
629
-
514
+ <tr>
515
+
516
+ <td class="name"><code>isVirtualPort</code></td>
517
+
630
518
 
631
- <td class="type">
632
-
633
-
634
- <span class="param-type">number</span>
519
+ <td class="type">
520
+
521
+
522
+ <span class="param-type">
523
+ boolean
524
+ </span>
635
525
 
526
+
636
527
 
637
528
 
638
-
639
- </td>
529
+
530
+ </td>
640
531
 
641
-
532
+
642
533
 
643
-
534
+
644
535
 
645
- <td class="description last"><p>The mode the device is currently in</p></td>
646
- </tr>
536
+ <td class="description last">
537
+ <p>Is this device attached to a virtual port (ie. a combined device)</p>
538
+ </td>
539
+ </tr>
647
540
 
648
-
649
- </tbody>
541
+
542
+ </tbody>
650
543
  </table>
651
- </dl>
652
544
 
653
-
654
545
 
655
-
656
546
 
657
-
658
547
 
659
-
660
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
661
- <dd class="inherited-from">
662
- <ul class="dummy">
663
- <li>
664
- <a href="Device.html#mode">Device#mode</a>
665
- </li>
666
- </ul>
667
- </dd>
668
-
548
+ <dl class="details">
669
549
 
670
-
550
+
671
551
 
672
-
552
+
673
553
 
674
-
554
+
555
+ <dt class="inherited-from">Inherited From:</dt>
556
+ <dd class="inherited-from">
557
+ <ul class="dummy">
558
+ <li>
559
+ <a href="Device.html#isVirtualPort">Device#isVirtualPort</a>
560
+ </li>
561
+ </ul>
562
+ </dd>
563
+
675
564
 
676
-
565
+
566
+
567
+
677
568
 
678
-
569
+
679
570
 
680
-
571
+
681
572
 
682
-
573
+
683
574
 
684
-
575
+
685
576
 
686
-
577
+
687
578
 
579
+
688
580
 
581
+
689
582
 
690
-
691
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
692
- <dd class="tag-source">
693
- <ul class="dummy">
694
- <li>
695
- <a href="devices_device.js.html">devices/device.js</a>,
696
- <a href="devices_device.js.html#sunlight-1-line-109">line 109</a>
697
- </li>
698
- </ul>
699
- </dd>
700
-
583
+
584
+ <dt class="tag-source">Source:</dt>
585
+ <dd class="tag-source">
586
+ <ul class="dummy">
587
+ <li>
588
+ <a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line120">line 120</a>
589
+ </li>
590
+ </ul>
591
+ </dd>
592
+
701
593
 
702
-
594
+
703
595
 
704
-
596
+
705
597
 
706
-
598
+
707
599
  </dl>
708
600
 
709
601
 
710
-
711
- </dd>
712
602
 
603
+
604
+
605
+
606
+
713
607
 
714
608
 
715
- <hr>
716
- <dt class="name" id="portName">
717
- <h4 id="portName"><span class="type-signature">&lt;readonly> </span>portName<span class="type-signature"></span></h4>
718
609
 
719
-
720
- </dt>
721
- <dd>
722
-
610
+ <h4 class="name" id="mode">
611
+ <span class="type-signature">(readonly) </span>mode<span class="type-signature"></span>
612
+ </h4>
613
+
723
614
 
724
-
725
615
 
726
-
727
- <dl class="details">
728
-
729
616
 
730
- <h5 class="subsection-title">Properties:</h5>
731
617
 
732
- <dl>
733
618
 
734
- <table class="props table table-striped">
735
- <thead>
619
+
620
+ <h5 class="subsection-title">Properties:</h5>
621
+
622
+
623
+
624
+ <table class="props">
625
+ <thead>
736
626
  <tr>
737
-
627
+
738
628
  <th>Name</th>
739
-
629
+
740
630
 
741
- <th>Type</th>
631
+ <th>Type</th>
742
632
 
743
-
633
+
744
634
 
745
-
635
+
746
636
 
747
- <th class="last">Description</th>
637
+ <th class="last">Description</th>
748
638
  </tr>
749
- </thead>
639
+ </thead>
750
640
 
751
- <tbody>
641
+ <tbody>
752
642
 
753
643
 
754
- <tr>
755
-
756
- <td class="name"><code>portName</code></td>
757
-
644
+ <tr>
645
+
646
+ <td class="name"><code>mode</code></td>
647
+
758
648
 
759
- <td class="type">
760
-
761
-
762
- <span class="param-type">string</span>
649
+ <td class="type">
650
+
651
+
652
+ <span class="param-type">
653
+ number
654
+ </span>
763
655
 
656
+
764
657
 
765
658
 
766
-
767
- </td>
659
+
660
+ </td>
768
661
 
769
-
662
+
770
663
 
771
-
664
+
772
665
 
773
- <td class="description last"><p>The port the device is attached to.</p></td>
774
- </tr>
666
+ <td class="description last">
667
+ <p>The mode the device is currently in</p>
668
+ </td>
669
+ </tr>
775
670
 
776
-
777
- </tbody>
671
+
672
+ </tbody>
778
673
  </table>
779
- </dl>
780
674
 
781
-
782
675
 
783
-
784
676
 
785
-
786
677
 
787
-
788
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
789
- <dd class="inherited-from">
790
- <ul class="dummy">
791
- <li>
792
- <a href="Device.html#portName">Device#portName</a>
793
- </li>
794
- </ul>
795
- </dd>
796
-
678
+ <dl class="details">
679
+
680
+
797
681
 
798
-
682
+
799
683
 
800
-
684
+
685
+ <dt class="inherited-from">Inherited From:</dt>
686
+ <dd class="inherited-from">
687
+ <ul class="dummy">
688
+ <li>
689
+ <a href="Device.html#mode">Device#mode</a>
690
+ </li>
691
+ </ul>
692
+ </dd>
693
+
801
694
 
802
-
695
+
803
696
 
804
-
697
+
805
698
 
806
-
699
+
807
700
 
808
-
701
+
809
702
 
810
-
703
+
811
704
 
812
-
705
+
813
706
 
814
-
707
+
815
708
 
709
+
816
710
 
711
+
817
712
 
818
-
819
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
820
- <dd class="tag-source">
821
- <ul class="dummy">
822
- <li>
823
- <a href="devices_device.js.html">devices/device.js</a>,
824
- <a href="devices_device.js.html#sunlight-1-line-92">line 92</a>
825
- </li>
826
- </ul>
827
- </dd>
828
-
713
+
714
+ <dt class="tag-source">Source:</dt>
715
+ <dd class="tag-source">
716
+ <ul class="dummy">
717
+ <li>
718
+ <a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line110">line 110</a>
719
+ </li>
720
+ </ul>
721
+ </dd>
722
+
829
723
 
830
-
724
+
831
725
 
832
-
726
+
833
727
 
834
-
728
+
835
729
  </dl>
836
730
 
837
731
 
838
-
839
- </dd>
840
732
 
733
+
734
+
735
+
736
+
841
737
 
842
738
 
843
- <hr>
844
- <dt class="name" id="type">
845
- <h4 id="type"><span class="type-signature">&lt;readonly> </span>type<span class="type-signature"></span></h4>
846
739
 
847
-
848
- </dt>
849
- <dd>
850
-
740
+ <h4 class="name" id="portName">
741
+ <span class="type-signature">(readonly) </span>portName<span class="type-signature"></span>
742
+ </h4>
743
+
744
+
745
+
851
746
 
852
-
853
747
 
854
-
855
- <dl class="details">
856
-
857
748
 
858
- <h5 class="subsection-title">Properties:</h5>
859
749
 
860
- <dl>
750
+ <h5 class="subsection-title">Properties:</h5>
861
751
 
862
- <table class="props table table-striped">
863
- <thead>
752
+
753
+
754
+ <table class="props">
755
+ <thead>
864
756
  <tr>
865
-
757
+
866
758
  <th>Name</th>
867
-
759
+
868
760
 
869
- <th>Type</th>
761
+ <th>Type</th>
870
762
 
871
-
763
+
872
764
 
873
-
765
+
874
766
 
875
- <th class="last">Description</th>
767
+ <th class="last">Description</th>
876
768
  </tr>
877
- </thead>
769
+ </thead>
878
770
 
879
- <tbody>
771
+ <tbody>
880
772
 
881
773
 
882
- <tr>
883
-
884
- <td class="name"><code>type</code></td>
885
-
774
+ <tr>
775
+
776
+ <td class="name"><code>portName</code></td>
777
+
886
778
 
887
- <td class="type">
888
-
889
-
890
- <span class="param-type">number</span>
779
+ <td class="type">
780
+
781
+
782
+ <span class="param-type">
783
+ string
784
+ </span>
891
785
 
786
+
892
787
 
893
788
 
894
-
895
- </td>
789
+
790
+ </td>
896
791
 
897
-
792
+
898
793
 
899
-
794
+
900
795
 
901
- <td class="description last"><p>The type of the device</p></td>
902
- </tr>
796
+ <td class="description last">
797
+ <p>The port the device is attached to.</p>
798
+ </td>
799
+ </tr>
903
800
 
904
-
905
- </tbody>
801
+
802
+ </tbody>
906
803
  </table>
907
- </dl>
908
804
 
909
-
910
805
 
911
-
912
806
 
913
-
914
807
 
915
-
916
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
917
- <dd class="inherited-from">
918
- <ul class="dummy">
919
- <li>
920
- <a href="Device.html#type">Device#type</a>
921
- </li>
922
- </ul>
923
- </dd>
924
-
808
+ <dl class="details">
925
809
 
926
-
810
+
927
811
 
928
-
812
+
929
813
 
930
-
814
+
815
+ <dt class="inherited-from">Inherited From:</dt>
816
+ <dd class="inherited-from">
817
+ <ul class="dummy">
818
+ <li>
819
+ <a href="Device.html#portName">Device#portName</a>
820
+ </li>
821
+ </ul>
822
+ </dd>
823
+
931
824
 
932
-
825
+
826
+
827
+
933
828
 
934
-
829
+
935
830
 
936
-
831
+
937
832
 
938
-
833
+
939
834
 
940
-
835
+
941
836
 
942
-
837
+
943
838
 
839
+
944
840
 
841
+
945
842
 
946
-
947
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
948
- <dd class="tag-source">
949
- <ul class="dummy">
950
- <li>
951
- <a href="devices_device.js.html">devices/device.js</a>,
952
- <a href="devices_device.js.html#sunlight-1-line-99">line 99</a>
953
- </li>
954
- </ul>
955
- </dd>
956
-
843
+
844
+ <dt class="tag-source">Source:</dt>
845
+ <dd class="tag-source">
846
+ <ul class="dummy">
847
+ <li>
848
+ <a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line93">line 93</a>
849
+ </li>
850
+ </ul>
851
+ </dd>
852
+
957
853
 
958
-
854
+
959
855
 
960
-
856
+
961
857
 
962
-
858
+
963
859
  </dl>
964
860
 
965
861
 
966
-
967
- </dd>
968
862
 
969
- </dl>
970
-
971
863
 
972
-
973
- <h3 class="subsection-title">Methods</h3>
974
864
 
975
- <dl>
865
+
866
+
867
+
976
868
 
977
- <hr>
978
- <dt>
979
- <h4 class="name" id="sendPFIRMessage"><span class="type-signature"></span>sendPFIRMessage(message)</h4>
980
-
981
-
982
- </dt>
983
- <dd>
984
869
 
985
-
986
- <div class="description">
987
- <p>Send a raw Power Functions IR command</p>
988
- </div>
989
-
870
+ <h4 class="name" id="type">
871
+ <span class="type-signature">(readonly) </span>type<span class="type-signature"></span>
872
+ </h4>
990
873
 
991
-
992
874
 
993
-
994
875
 
995
-
996
-
997
- <h5>Parameters:</h5>
998
-
999
876
 
1000
- <table class="params table table-striped">
1001
- <thead>
877
+
878
+
879
+
880
+ <h5 class="subsection-title">Properties:</h5>
881
+
882
+
883
+
884
+ <table class="props">
885
+ <thead>
1002
886
  <tr>
1003
-
887
+
1004
888
  <th>Name</th>
1005
-
889
+
1006
890
 
1007
- <th>Type</th>
891
+ <th>Type</th>
1008
892
 
1009
-
893
+
1010
894
 
1011
-
895
+
1012
896
 
1013
- <th class="last">Description</th>
897
+ <th class="last">Description</th>
1014
898
  </tr>
1015
- </thead>
899
+ </thead>
1016
900
 
1017
- <tbody>
901
+ <tbody>
1018
902
 
1019
903
 
1020
- <tr>
1021
-
1022
- <td class="name"><code>message</code></td>
1023
-
904
+ <tr>
905
+
906
+ <td class="name"><code>type</code></td>
907
+
1024
908
 
1025
- <td class="type">
1026
-
1027
-
1028
- <span class="param-type">Buffer</span>
909
+ <td class="type">
910
+
911
+
912
+ <span class="param-type">
913
+ number
914
+ </span>
1029
915
 
916
+
1030
917
 
1031
918
 
1032
-
1033
- </td>
919
+
920
+ </td>
1034
921
 
1035
-
922
+
1036
923
 
1037
-
924
+
1038
925
 
1039
- <td class="description last"><p>2 byte payload making up a Power Functions protocol command. NOTE: Only specify nibbles 1-3, nibble 4 should be zeroed.</p></td>
1040
- </tr>
926
+ <td class="description last">
927
+ <p>The type of the device</p>
928
+ </td>
929
+ </tr>
1041
930
 
1042
-
1043
- </tbody>
931
+
932
+ </tbody>
1044
933
  </table>
1045
934
 
1046
-
1047
935
 
1048
-
1049
- <dl class="details">
1050
-
1051
936
 
1052
-
1053
937
 
1054
-
938
+ <dl class="details">
1055
939
 
1056
-
940
+
1057
941
 
1058
-
942
+
1059
943
 
1060
-
944
+
945
+ <dt class="inherited-from">Inherited From:</dt>
946
+ <dd class="inherited-from">
947
+ <ul class="dummy">
948
+ <li>
949
+ <a href="Device.html#type">Device#type</a>
950
+ </li>
951
+ </ul>
952
+ </dd>
953
+
1061
954
 
1062
-
955
+
1063
956
 
1064
-
957
+
1065
958
 
1066
-
959
+
1067
960
 
1068
-
961
+
1069
962
 
1070
-
963
+
1071
964
 
1072
-
965
+
1073
966
 
1074
-
967
+
1075
968
 
969
+
1076
970
 
971
+
1077
972
 
1078
-
1079
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1080
- <dd class="tag-source">
1081
- <ul class="dummy">
1082
- <li>
1083
- <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>,
1084
- <a href="devices_colordistancesensor.js.html#sunlight-1-line-152">line 152</a>
1085
- </li>
1086
- </ul>
1087
- </dd>
1088
-
973
+
974
+ <dt class="tag-source">Source:</dt>
975
+ <dd class="tag-source">
976
+ <ul class="dummy">
977
+ <li>
978
+ <a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line100">line 100</a>
979
+ </li>
980
+ </ul>
981
+ </dd>
982
+
1089
983
 
1090
-
984
+
1091
985
 
1092
-
986
+
1093
987
 
1094
-
988
+
1095
989
  </dl>
1096
990
 
1097
991
 
1098
-
1099
992
 
1100
-
1101
993
 
1102
-
1103
994
 
1104
-
1105
995
 
996
+
997
+
1106
998
 
1107
999
 
1108
1000
 
1109
- <h5>Returns:</h5>
1110
-
1111
-
1112
- <div class="param-desc">
1113
- <p>Resolved upon successful issuance of the command.</p>
1114
- </div>
1001
+ <h3 class="subsection-title">Methods</h3>
1115
1002
 
1003
+
1004
+
1116
1005
 
1117
1006
 
1118
- <dl>
1119
- <dt>
1120
- Type
1121
- </dt>
1122
- <dd>
1123
-
1124
- <span class="param-type">Promise</span>
1007
+
1125
1008
 
1009
+ <span class='name-container'>
1010
+ <a class="link-icon" href="#sendPFIRMessage">
1011
+ <svg height="20" width="20" style="fill: black;">
1012
+ <use xlink:href="#linkIcon"></use>
1013
+ </svg>
1014
+ </a>
1015
+ <h4 class="name" id="sendPFIRMessage">
1016
+ <span class="type-signature"></span>sendPFIRMessage<span class="signature">(message)</span><span class="type-signature"> &rarr; {Promise}</span>
1017
+ </h4>
1018
+ </span>
1126
1019
 
1020
+
1127
1021
 
1128
- </dd>
1129
- </dl>
1130
1022
 
1131
1023
 
1132
-
1024
+ <div class="description">
1025
+ <p>Send a raw Power Functions IR command</p>
1026
+ </div>
1133
1027
 
1134
-
1135
- </dd>
1136
1028
 
1137
-
1138
-
1139
- <hr>
1140
- <dt>
1141
- <h4 class="name" id="setColor"><span class="type-signature"></span>setColor(color)</h4>
1142
-
1143
-
1144
- </dt>
1145
- <dd>
1146
1029
 
1147
-
1148
- <div class="description">
1149
- <p>Set the color of the LED on the sensor via a color value.</p>
1150
- </div>
1151
-
1152
1030
 
1153
-
1154
1031
 
1155
-
1156
1032
 
1157
-
1158
-
1159
- <h5>Parameters:</h5>
1160
-
1161
1033
 
1162
- <table class="params table table-striped">
1163
- <thead>
1034
+ <h5>Parameters:</h5>
1035
+
1036
+
1037
+ <table class="params">
1038
+ <thead>
1164
1039
  <tr>
1165
-
1040
+
1166
1041
  <th>Name</th>
1167
-
1042
+
1168
1043
 
1169
- <th>Type</th>
1044
+ <th>Type</th>
1170
1045
 
1171
-
1046
+
1172
1047
 
1173
-
1048
+
1174
1049
 
1175
- <th class="last">Description</th>
1050
+ <th class="last">Description</th>
1176
1051
  </tr>
1177
- </thead>
1052
+ </thead>
1178
1053
 
1179
- <tbody>
1054
+ <tbody>
1180
1055
 
1056
+ <tr>
1057
+
1058
+ <td class="name"><code>message</code></td>
1059
+
1181
1060
 
1182
- <tr>
1183
-
1184
- <td class="name"><code>color</code></td>
1185
-
1186
-
1187
- <td class="type">
1061
+ <td class="type">
1062
+
1188
1063
 
1189
-
1190
- <span class="param-type">Color</span>
1064
+ <span class="param-type">
1065
+ Buffer
1066
+ </span>
1191
1067
 
1068
+
1192
1069
 
1193
1070
 
1194
-
1195
- </td>
1071
+
1072
+ </td>
1196
1073
 
1197
-
1074
+
1198
1075
 
1199
-
1076
+
1200
1077
 
1201
- <td class="description last"></td>
1202
- </tr>
1078
+ <td class="description last">
1079
+ <p>2 byte payload making up a Power Functions protocol command. NOTE: Only specify nibbles 1-3, nibble 4 should be zeroed.</p>
1080
+
1081
+ </td>
1082
+ </tr>
1203
1083
 
1204
1084
 
1205
- </tbody>
1085
+ </tbody>
1206
1086
  </table>
1207
1087
 
1208
-
1209
1088
 
1210
-
1211
- <dl class="details">
1212
-
1213
1089
 
1214
-
1215
1090
 
1216
-
1217
1091
 
1218
-
1092
+ <dl class="details">
1093
+
1094
+
1219
1095
 
1220
-
1096
+
1221
1097
 
1222
-
1098
+
1223
1099
 
1224
-
1100
+
1225
1101
 
1226
-
1102
+
1227
1103
 
1228
-
1104
+
1229
1105
 
1230
-
1106
+
1231
1107
 
1232
-
1108
+
1233
1109
 
1234
-
1110
+
1235
1111
 
1236
-
1112
+
1237
1113
 
1114
+
1238
1115
 
1116
+
1239
1117
 
1240
-
1241
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1242
- <dd class="tag-source">
1243
- <ul class="dummy">
1244
- <li>
1245
- <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>,
1246
- <a href="devices_colordistancesensor.js.html#sunlight-1-line-170">line 170</a>
1247
- </li>
1248
- </ul>
1249
- </dd>
1250
-
1118
+
1119
+ <dt class="tag-source">Source:</dt>
1120
+ <dd class="tag-source">
1121
+ <ul class="dummy">
1122
+ <li>
1123
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line217">line 217</a>
1124
+ </li>
1125
+ </ul>
1126
+ </dd>
1127
+
1251
1128
 
1252
-
1129
+
1253
1130
 
1254
-
1131
+
1255
1132
 
1256
-
1133
+
1257
1134
  </dl>
1258
1135
 
1259
1136
 
1260
-
1261
1137
 
1262
-
1263
1138
 
1264
-
1265
1139
 
1266
-
1267
1140
 
1268
-
1269
1141
 
1270
-
1271
- <h5>Returns:</h5>
1272
-
1273
-
1274
- <div class="param-desc">
1275
- <p>Resolved upon successful issuance of the command.</p>
1276
- </div>
1277
1142
 
1278
1143
 
1279
1144
 
1280
- <dl>
1281
- <dt>
1282
- Type
1283
- </dt>
1284
- <dd>
1145
+
1146
+
1147
+
1148
+
1149
+
1285
1150
 
1286
- <span class="param-type">Promise</span>
1287
1151
 
1288
1152
 
1153
+
1289
1154
 
1290
- </dd>
1291
- </dl>
1155
+ <span class='name-container'>
1156
+ <a class="link-icon" href="#setColor">
1157
+ <svg height="20" width="20" style="fill: black;">
1158
+ <use xlink:href="#linkIcon"></use>
1159
+ </svg>
1160
+ </a>
1161
+ <h4 class="name" id="setColor">
1162
+ <span class="type-signature"></span>setColor<span class="signature">(color)</span><span class="type-signature"> &rarr; {Promise}</span>
1163
+ </h4>
1164
+ </span>
1292
1165
 
1166
+
1293
1167
 
1294
-
1295
1168
 
1296
-
1297
- </dd>
1298
1169
 
1299
-
1300
-
1301
- <hr>
1302
- <dt>
1303
- <h4 class="name" id="setPFExtendedChannel"><span class="type-signature"></span>setPFExtendedChannel(channel)</h4>
1304
-
1305
-
1306
- </dt>
1307
- <dd>
1170
+ <div class="description">
1171
+ <p>Set the color of the LED on the sensor via a color value.</p>
1172
+ </div>
1173
+
1308
1174
 
1309
-
1310
- <div class="description">
1311
- <p>Switches the IR receiver into extended channel mode. After setting this, use channels 5-8 instead of 1-4 for this receiver.</p>
1312
- <p>NOTE: Calling this with channel 5-8 with switch off extended channel mode for this receiver.</p>
1313
- </div>
1314
-
1315
1175
 
1316
-
1317
1176
 
1318
-
1319
1177
 
1320
-
1321
-
1322
- <h5>Parameters:</h5>
1323
-
1324
1178
 
1325
- <table class="params table table-striped">
1326
- <thead>
1179
+
1180
+ <h5>Parameters:</h5>
1181
+
1182
+
1183
+ <table class="params">
1184
+ <thead>
1327
1185
  <tr>
1328
-
1186
+
1329
1187
  <th>Name</th>
1330
-
1188
+
1331
1189
 
1332
- <th>Type</th>
1190
+ <th>Type</th>
1333
1191
 
1334
-
1192
+
1335
1193
 
1336
-
1194
+
1337
1195
 
1338
- <th class="last">Description</th>
1196
+ <th class="last">Description</th>
1339
1197
  </tr>
1340
- </thead>
1198
+ </thead>
1341
1199
 
1342
- <tbody>
1200
+ <tbody>
1343
1201
 
1202
+ <tr>
1203
+
1204
+ <td class="name"><code>color</code></td>
1205
+
1344
1206
 
1345
- <tr>
1346
-
1347
- <td class="name"><code>channel</code></td>
1348
-
1349
-
1350
- <td class="type">
1207
+ <td class="type">
1208
+
1351
1209
 
1352
-
1353
- <span class="param-type">number</span>
1210
+ <span class="param-type">
1211
+ <a href="global.html#Color">Color</a>
1212
+ </span>
1354
1213
 
1214
+
1355
1215
 
1356
1216
 
1357
-
1358
- </td>
1217
+
1218
+ </td>
1359
1219
 
1360
-
1220
+
1361
1221
 
1362
-
1222
+
1363
1223
 
1364
- <td class="description last"><p>Channel number, between 1-8</p></td>
1365
- </tr>
1224
+ <td class="description last">
1225
+
1226
+
1227
+ </td>
1228
+ </tr>
1366
1229
 
1367
1230
 
1368
- </tbody>
1231
+ </tbody>
1369
1232
  </table>
1370
1233
 
1371
-
1372
1234
 
1373
-
1374
- <dl class="details">
1375
-
1376
1235
 
1377
-
1378
1236
 
1379
-
1380
1237
 
1381
-
1238
+ <dl class="details">
1382
1239
 
1383
-
1240
+
1384
1241
 
1385
-
1242
+
1386
1243
 
1387
-
1244
+
1388
1245
 
1389
-
1246
+
1390
1247
 
1391
-
1248
+
1392
1249
 
1393
-
1250
+
1394
1251
 
1395
-
1252
+
1396
1253
 
1397
-
1254
+
1398
1255
 
1399
-
1256
+
1400
1257
 
1258
+
1401
1259
 
1260
+
1402
1261
 
1403
-
1404
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1405
- <dd class="tag-source">
1406
- <ul class="dummy">
1407
- <li>
1408
- <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>,
1409
- <a href="devices_colordistancesensor.js.html#sunlight-1-line-90">line 90</a>
1410
- </li>
1411
- </ul>
1412
- </dd>
1413
-
1262
+
1263
+
1264
+
1265
+ <dt class="tag-source">Source:</dt>
1266
+ <dd class="tag-source">
1267
+ <ul class="dummy">
1268
+ <li>
1269
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line235">line 235</a>
1270
+ </li>
1271
+ </ul>
1272
+ </dd>
1273
+
1414
1274
 
1415
-
1275
+
1416
1276
 
1417
-
1277
+
1418
1278
 
1419
-
1279
+
1420
1280
  </dl>
1421
1281
 
1422
1282
 
1423
-
1424
1283
 
1425
-
1426
1284
 
1427
-
1428
1285
 
1429
-
1430
1286
 
1431
-
1432
1287
 
1433
-
1434
- <h5>Returns:</h5>
1435
-
1436
-
1437
- <div class="param-desc">
1438
- <p>Resolved upon successful issuance of the command.</p>
1439
- </div>
1440
1288
 
1441
1289
 
1442
1290
 
1443
- <dl>
1444
- <dt>
1445
- Type
1446
- </dt>
1447
- <dd>
1291
+
1292
+
1293
+
1294
+
1295
+
1448
1296
 
1449
- <span class="param-type">Promise</span>
1450
1297
 
1451
1298
 
1299
+
1452
1300
 
1453
- </dd>
1454
- </dl>
1301
+ <span class='name-container'>
1302
+ <a class="link-icon" href="#setDistanceCount">
1303
+ <svg height="20" width="20" style="fill: black;">
1304
+ <use xlink:href="#linkIcon"></use>
1305
+ </svg>
1306
+ </a>
1307
+ <h4 class="name" id="setDistanceCount">
1308
+ <span class="type-signature"></span>setDistanceCount<span class="signature">(distance)</span><span class="type-signature"> &rarr; {Promise}</span>
1309
+ </h4>
1310
+ </span>
1455
1311
 
1312
+
1456
1313
 
1457
-
1458
1314
 
1459
-
1460
- </dd>
1461
1315
 
1462
-
1463
-
1464
- <hr>
1465
- <dt>
1466
- <h4 class="name" id="setPFPower"><span class="type-signature"></span>setPFPower(channel, output, power)</h4>
1467
-
1468
-
1469
- </dt>
1470
- <dd>
1316
+ <div class="description">
1317
+ <p>Set the distance count value.</p>
1318
+ </div>
1471
1319
 
1472
-
1473
- <div class="description">
1474
- <p>Set the power of a Power Functions motor via IR</p>
1475
- </div>
1476
-
1477
1320
 
1478
-
1479
1321
 
1480
-
1481
1322
 
1482
-
1483
-
1484
- <h5>Parameters:</h5>
1485
-
1486
1323
 
1487
- <table class="params table table-striped">
1488
- <thead>
1324
+
1325
+
1326
+ <h5>Parameters:</h5>
1327
+
1328
+
1329
+ <table class="params">
1330
+ <thead>
1489
1331
  <tr>
1490
-
1332
+
1491
1333
  <th>Name</th>
1492
-
1334
+
1493
1335
 
1494
- <th>Type</th>
1336
+ <th>Type</th>
1495
1337
 
1496
-
1338
+
1497
1339
 
1498
-
1340
+
1499
1341
 
1500
- <th class="last">Description</th>
1342
+ <th class="last">Description</th>
1501
1343
  </tr>
1502
- </thead>
1344
+ </thead>
1503
1345
 
1504
- <tbody>
1346
+ <tbody>
1505
1347
 
1348
+ <tr>
1349
+
1350
+ <td class="name"><code>distance</code></td>
1351
+
1506
1352
 
1507
- <tr>
1508
-
1509
- <td class="name"><code>channel</code></td>
1510
-
1511
-
1512
- <td class="type">
1353
+ <td class="type">
1354
+
1513
1355
 
1514
-
1515
- <span class="param-type">number</span>
1356
+ <span class="param-type">
1357
+ count
1358
+ </span>
1516
1359
 
1360
+
1517
1361
 
1518
1362
 
1519
-
1520
- </td>
1363
+
1364
+ </td>
1521
1365
 
1522
-
1366
+
1523
1367
 
1524
-
1368
+
1525
1369
 
1526
- <td class="description last"><p>Channel number, between 1-4</p></td>
1527
- </tr>
1370
+ <td class="description last">
1371
+ <p>count between 0 and 2^32</p>
1372
+
1373
+ </td>
1374
+ </tr>
1528
1375
 
1529
1376
 
1377
+ </tbody>
1378
+ </table>
1530
1379
 
1531
- <tr>
1532
-
1533
- <td class="name"><code>output</code></td>
1534
-
1535
1380
 
1536
- <td class="type">
1537
-
1538
-
1539
- <span class="param-type">string</span>
1540
1381
 
1541
1382
 
1542
1383
 
1543
-
1544
- </td>
1384
+ <dl class="details">
1545
1385
 
1546
-
1386
+
1547
1387
 
1548
-
1388
+
1549
1389
 
1550
- <td class="description last"><p>Outport port, &quot;RED&quot; (A) or &quot;BLUE&quot; (B)</p></td>
1551
- </tr>
1390
+
1552
1391
 
1553
-
1392
+
1554
1393
 
1555
- <tr>
1556
-
1557
- <td class="name"><code>power</code></td>
1558
-
1394
+
1559
1395
 
1560
- <td class="type">
1561
-
1562
-
1563
- <span class="param-type">number</span>
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+ <dt class="tag-source">Source:</dt>
1412
+ <dd class="tag-source">
1413
+ <ul class="dummy">
1414
+ <li>
1415
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line256">line 256</a>
1416
+ </li>
1417
+ </ul>
1418
+ </dd>
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+ </dl>
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+ <span class='name-container'>
1448
+ <a class="link-icon" href="#setPFExtendedChannel">
1449
+ <svg height="20" width="20" style="fill: black;">
1450
+ <use xlink:href="#linkIcon"></use>
1451
+ </svg>
1452
+ </a>
1453
+ <h4 class="name" id="setPFExtendedChannel">
1454
+ <span class="type-signature"></span>setPFExtendedChannel<span class="signature">(channel)</span><span class="type-signature"> &rarr; {Promise}</span>
1455
+ </h4>
1456
+ </span>
1564
1457
 
1458
+
1565
1459
 
1566
1460
 
1461
+
1462
+ <div class="description">
1463
+ <p>Switches the IR receiver into extended channel mode. After setting this, use channels 5-8 instead of 1-4 for this receiver.</p>
1464
+ <p>NOTE: Calling this with channel 5-8 with switch off extended channel mode for this receiver.</p>
1465
+ </div>
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+ <h5>Parameters:</h5>
1474
+
1475
+
1476
+ <table class="params">
1477
+ <thead>
1478
+ <tr>
1479
+
1480
+ <th>Name</th>
1481
+
1482
+
1483
+ <th>Type</th>
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+ <th class="last">Description</th>
1490
+ </tr>
1491
+ </thead>
1492
+
1493
+ <tbody>
1494
+
1495
+ <tr>
1496
+
1497
+ <td class="name"><code>channel</code></td>
1498
+
1499
+
1500
+ <td class="type">
1501
+
1567
1502
 
1568
- </td>
1503
+ <span class="param-type">
1504
+ number
1505
+ </span>
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+ </td>
1512
+
1513
+
1514
+
1515
+
1516
+
1517
+ <td class="description last">
1518
+ <p>Channel number, between 1-8</p>
1519
+
1520
+ </td>
1521
+ </tr>
1522
+
1523
+
1524
+ </tbody>
1525
+ </table>
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+ <dl class="details">
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+ <dt class="tag-source">Source:</dt>
1559
+ <dd class="tag-source">
1560
+ <ul class="dummy">
1561
+ <li>
1562
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line155">line 155</a>
1563
+ </li>
1564
+ </ul>
1565
+ </dd>
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+ </dl>
1574
+
1575
+
1576
+
1577
+
1578
+
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+ <span class='name-container'>
1595
+ <a class="link-icon" href="#setPFPower">
1596
+ <svg height="20" width="20" style="fill: black;">
1597
+ <use xlink:href="#linkIcon"></use>
1598
+ </svg>
1599
+ </a>
1600
+ <h4 class="name" id="setPFPower">
1601
+ <span class="type-signature"></span>setPFPower<span class="signature">(channel, output, power)</span><span class="type-signature"> &rarr; {Promise}</span>
1602
+ </h4>
1603
+ </span>
1604
+
1605
+
1606
+
1607
+
1608
+
1609
+ <div class="description">
1610
+ <p>Set the power of a Power Functions motor via IR</p>
1611
+ </div>
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+ <h5>Parameters:</h5>
1620
+
1621
+
1622
+ <table class="params">
1623
+ <thead>
1624
+ <tr>
1625
+
1626
+ <th>Name</th>
1627
+
1628
+
1629
+ <th>Type</th>
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+ <th class="last">Description</th>
1636
+ </tr>
1637
+ </thead>
1638
+
1639
+ <tbody>
1640
+
1641
+ <tr>
1642
+
1643
+ <td class="name"><code>channel</code></td>
1644
+
1569
1645
 
1646
+ <td class="type">
1647
+
1570
1648
 
1649
+ <span class="param-type">
1650
+ number
1651
+ </span>
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+ </td>
1658
+
1659
+
1660
+
1661
+
1662
+
1663
+ <td class="description last">
1664
+ <p>Channel number, between 1-4</p>
1665
+
1666
+ </td>
1667
+ </tr>
1668
+
1669
+
1670
+ <tr>
1671
+
1672
+ <td class="name"><code>output</code></td>
1673
+
1571
1674
 
1675
+ <td class="type">
1676
+
1572
1677
 
1678
+ <span class="param-type">
1679
+ string
1680
+ </span>
1681
+
1682
+
1683
+
1684
+
1685
+
1686
+ </td>
1687
+
1688
+
1573
1689
 
1574
- <td class="description last"><p>7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.</p></td>
1575
- </tr>
1690
+
1691
+
1692
+ <td class="description last">
1693
+ <p>Outport port, &quot;RED&quot; (A) or &quot;BLUE&quot; (B)</p>
1694
+
1695
+ </td>
1696
+ </tr>
1576
1697
 
1577
1698
 
1578
- </tbody>
1579
- </table>
1699
+ <tr>
1700
+
1701
+ <td class="name"><code>power</code></td>
1702
+
1703
+
1704
+ <td class="type">
1705
+
1706
+
1707
+ <span class="param-type">
1708
+ number
1709
+ </span>
1580
1710
 
1581
1711
 
1582
1712
 
1713
+
1714
+
1715
+ </td>
1716
+
1717
+
1718
+
1719
+
1720
+
1721
+ <td class="description last">
1722
+ <p>7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.</p>
1723
+
1724
+ </td>
1725
+ </tr>
1726
+
1583
1727
 
1728
+ </tbody>
1729
+ </table>
1730
+
1731
+
1732
+
1733
+
1734
+
1584
1735
  <dl class="details">
1736
+
1737
+
1738
+
1739
+
1740
+
1741
+
1742
+
1743
+
1744
+
1745
+
1746
+
1747
+
1748
+
1749
+
1750
+
1751
+
1752
+
1753
+
1754
+
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+ <dt class="tag-source">Source:</dt>
1763
+ <dd class="tag-source">
1764
+ <ul class="dummy">
1765
+ <li>
1766
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line175">line 175</a>
1767
+ </li>
1768
+ </ul>
1769
+ </dd>
1770
+
1771
+
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+ </dl>
1778
+
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+
1789
+
1790
+
1791
+
1792
+
1793
+
1794
+
1795
+
1796
+
1797
+
1798
+ <span class='name-container'>
1799
+ <a class="link-icon" href="#startPFMotors">
1800
+ <svg height="20" width="20" style="fill: black;">
1801
+ <use xlink:href="#linkIcon"></use>
1802
+ </svg>
1803
+ </a>
1804
+ <h4 class="name" id="startPFMotors">
1805
+ <span class="type-signature"></span>startPFMotors<span class="signature">(channel, powerA, powerB)</span><span class="type-signature"> &rarr; {Promise}</span>
1806
+ </h4>
1807
+ </span>
1808
+
1809
+
1810
+
1811
+
1812
+
1813
+ <div class="description">
1814
+ <p>Start Power Functions motors running via IR</p>
1815
+ <p>NOTE: This command is designed for bang-bang style operation. To keep the motors running, the sensor needs to be within range of the IR receiver constantly.</p>
1816
+ </div>
1817
+
1818
+
1819
+
1820
+
1821
+
1822
+
1823
+
1824
+ <h5>Parameters:</h5>
1825
+
1826
+
1827
+ <table class="params">
1828
+ <thead>
1829
+ <tr>
1830
+
1831
+ <th>Name</th>
1832
+
1833
+
1834
+ <th>Type</th>
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+ <th class="last">Description</th>
1841
+ </tr>
1842
+ </thead>
1843
+
1844
+ <tbody>
1845
+
1846
+ <tr>
1847
+
1848
+ <td class="name"><code>channel</code></td>
1849
+
1850
+
1851
+ <td class="type">
1852
+
1853
+
1854
+ <span class="param-type">
1855
+ Buffer
1856
+ </span>
1857
+
1585
1858
 
1586
1859
 
1587
-
1588
1860
 
1589
-
1861
+
1862
+ </td>
1863
+
1864
+
1865
+
1866
+
1590
1867
 
1591
-
1868
+ <td class="description last">
1869
+ <p>Channel number, between 1-4</p>
1870
+
1871
+ </td>
1872
+ </tr>
1592
1873
 
1593
1874
 
1875
+ <tr>
1876
+
1877
+ <td class="name"><code>powerA</code></td>
1878
+
1879
+
1880
+ <td class="type">
1881
+
1882
+
1883
+ <span class="param-type">
1884
+ Buffer
1885
+ </span>
1594
1886
 
1595
1887
 
1596
1888
 
1889
+
1890
+
1891
+ </td>
1892
+
1893
+
1894
+
1895
+
1896
+
1897
+ <td class="description last">
1898
+ <p>7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.</p>
1899
+
1900
+ </td>
1901
+ </tr>
1902
+
1597
1903
 
1904
+ <tr>
1905
+
1906
+ <td class="name"><code>powerB</code></td>
1907
+
1908
+
1909
+ <td class="type">
1910
+
1911
+
1912
+ <span class="param-type">
1913
+ Buffer
1914
+ </span>
1598
1915
 
1599
1916
 
1600
1917
 
1601
-
1602
1918
 
1603
-
1919
+
1920
+ </td>
1604
1921
 
1605
-
1922
+
1923
+
1924
+
1925
+
1926
+ <td class="description last">
1927
+ <p>7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.</p>
1928
+
1929
+ </td>
1930
+ </tr>
1931
+
1932
+
1933
+ </tbody>
1934
+ </table>
1935
+
1936
+
1937
+
1938
+
1939
+
1940
+ <dl class="details">
1941
+
1942
+
1943
+
1944
+
1945
+
1946
+
1606
1947
 
1607
-
1948
+
1608
1949
 
1609
-
1950
+
1610
1951
 
1952
+
1611
1953
 
1954
+
1612
1955
 
1613
-
1614
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1615
- <dd class="tag-source">
1616
- <ul class="dummy">
1617
- <li>
1618
- <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>,
1619
- <a href="devices_colordistancesensor.js.html#sunlight-1-line-110">line 110</a>
1620
- </li>
1621
- </ul>
1622
- </dd>
1623
-
1956
+
1624
1957
 
1625
-
1958
+
1626
1959
 
1627
-
1960
+
1628
1961
 
1629
-
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+ <dt class="tag-source">Source:</dt>
1968
+ <dd class="tag-source">
1969
+ <ul class="dummy">
1970
+ <li>
1971
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line195">line 195</a>
1972
+ </li>
1973
+ </ul>
1974
+ </dd>
1975
+
1976
+
1977
+
1978
+
1979
+
1980
+
1981
+
1630
1982
  </dl>
1631
1983
 
1632
1984
 
1985
+
1986
+
1987
+
1988
+
1989
+
1990
+
1991
+
1992
+
1993
+
1994
+
1995
+
1996
+
1997
+
1633
1998
 
1634
1999
 
1635
2000
 
1636
2001
 
1637
2002
 
2003
+ <h3 class="subsection-title">Events</h3>
2004
+
2005
+
2006
+
2007
+
2008
+
2009
+
2010
+
2011
+ <span class='name-container'>
2012
+ <a class="link-icon" href="#event:ambient">
2013
+ <svg height="20" width="20" style="fill: black;">
2014
+ <use xlink:href="#linkIcon"></use>
2015
+ </svg>
2016
+ </a>
2017
+ <h4 class="name" id="event:ambient">
2018
+ <span class="type-signature"></span>ambient<span class="type-signature"> :object</span>
2019
+ </h4>
2020
+ </span>
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+ <div class="description">
2027
+ <p>Event measuring abient light change, emits when the sensor is activated.</p>
2028
+ </div>
2029
+
2030
+
2031
+
2032
+
2033
+
1638
2034
 
2035
+
2036
+ <h5>Parameters:</h5>
2037
+
2038
+
2039
+ <table class="params">
2040
+ <thead>
2041
+ <tr>
2042
+
2043
+ <th>Name</th>
2044
+
2045
+
2046
+ <th>Type</th>
2047
+
2048
+
2049
+
2050
+
2051
+
2052
+ <th class="last">Description</th>
2053
+ </tr>
2054
+ </thead>
2055
+
2056
+ <tbody>
1639
2057
 
2058
+ <tr>
2059
+
2060
+ <td class="name"><code>percentage</code></td>
2061
+
2062
+
2063
+ <td class="type">
2064
+
2065
+
2066
+ <span class="param-type">
2067
+ number
2068
+ </span>
1640
2069
 
1641
2070
 
1642
2071
 
2072
+
2073
+
2074
+ </td>
2075
+
2076
+
2077
+
2078
+
2079
+
2080
+ <td class="description last">
2081
+ <p>from 0 to 100.</p>
2082
+
2083
+ </td>
2084
+ </tr>
2085
+
1643
2086
 
1644
- <h5>Returns:</h5>
2087
+ </tbody>
2088
+ </table>
2089
+
2090
+
2091
+
2092
+
2093
+
2094
+ <dl class="details">
2095
+
2096
+
2097
+
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+
2114
+
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+ <dt class="tag-source">Source:</dt>
2122
+ <dd class="tag-source">
2123
+ <ul class="dummy">
2124
+ <li>
2125
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line102">line 102</a>
2126
+ </li>
2127
+ </ul>
2128
+ </dd>
2129
+
2130
+
2131
+
2132
+
2133
+
2134
+
2135
+
2136
+ </dl>
2137
+
2138
+
2139
+
2140
+
2141
+
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+ <span class='name-container'>
2158
+ <a class="link-icon" href="#event:color">
2159
+ <svg height="20" width="20" style="fill: black;">
2160
+ <use xlink:href="#linkIcon"></use>
2161
+ </svg>
2162
+ </a>
2163
+ <h4 class="name" id="event:color">
2164
+ <span class="type-signature"></span>color<span class="type-signature"> :object</span>
2165
+ </h4>
2166
+ </span>
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+ <div class="description">
2173
+ <p>Emits when a color sensor is activated.</p>
2174
+ </div>
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+
2181
+
2182
+ <h5>Parameters:</h5>
2183
+
2184
+
2185
+ <table class="params">
2186
+ <thead>
2187
+ <tr>
2188
+
2189
+ <th>Name</th>
2190
+
2191
+
2192
+ <th>Type</th>
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+ <th class="last">Description</th>
2199
+ </tr>
2200
+ </thead>
2201
+
2202
+ <tbody>
1645
2203
 
2204
+ <tr>
2205
+
2206
+ <td class="name"><code>color</code></td>
2207
+
2208
+
2209
+ <td class="type">
2210
+
1646
2211
 
1647
- <div class="param-desc">
1648
- <p>Resolved upon successful issuance of the command.</p>
1649
- </div>
2212
+ <span class="param-type">
2213
+ <a href="global.html#Color">Color</a>
2214
+ </span>
2215
+
2216
+
2217
+
1650
2218
 
2219
+
2220
+ </td>
1651
2221
 
2222
+
1652
2223
 
1653
- <dl>
1654
- <dt>
1655
- Type
1656
- </dt>
1657
- <dd>
1658
2224
 
1659
- <span class="param-type">Promise</span>
1660
2225
 
2226
+ <td class="description last">
2227
+
2228
+
2229
+ </td>
2230
+ </tr>
2231
+
2232
+
2233
+ </tbody>
2234
+ </table>
2235
+
2236
+
2237
+
2238
+
2239
+
2240
+ <dl class="details">
2241
+
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+
2255
+
2256
+
2257
+
2258
+
2259
+
2260
+
1661
2261
 
2262
+
1662
2263
 
2264
+
2265
+
2266
+
2267
+ <dt class="tag-source">Source:</dt>
2268
+ <dd class="tag-source">
2269
+ <ul class="dummy">
2270
+ <li>
2271
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line40">line 40</a>
2272
+ </li>
2273
+ </ul>
1663
2274
  </dd>
2275
+
2276
+
2277
+
2278
+
2279
+
2280
+
2281
+
1664
2282
  </dl>
1665
2283
 
1666
2284
 
2285
+
2286
+
2287
+
2288
+
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+
2296
+
2297
+
1667
2298
 
1668
2299
 
1669
-
1670
- </dd>
1671
2300
 
2301
+
2302
+
2303
+ <span class='name-container'>
2304
+ <a class="link-icon" href="#event:colorAndDistance">
2305
+ <svg height="20" width="20" style="fill: black;">
2306
+ <use xlink:href="#linkIcon"></use>
2307
+ </svg>
2308
+ </a>
2309
+ <h4 class="name" id="event:colorAndDistance">
2310
+ <span class="type-signature"></span>colorAndDistance<span class="type-signature"> :object</span>
2311
+ </h4>
2312
+ </span>
2313
+
2314
+
2315
+
2316
+
2317
+
2318
+ <div class="description">
2319
+ <p>A combined color and distance event, emits when the sensor is activated.</p>
2320
+ </div>
2321
+
2322
+
2323
+
2324
+
2325
+
2326
+
2327
+
2328
+ <h5>Parameters:</h5>
2329
+
2330
+
2331
+ <table class="params">
2332
+ <thead>
2333
+ <tr>
2334
+
2335
+ <th>Name</th>
2336
+
2337
+
2338
+ <th>Type</th>
2339
+
2340
+
2341
+
2342
+
2343
+
2344
+ <th class="last">Description</th>
2345
+ </tr>
2346
+ </thead>
2347
+
2348
+ <tbody>
2349
+
2350
+ <tr>
1672
2351
 
2352
+ <td class="name"><code>color</code></td>
2353
+
2354
+
2355
+ <td class="type">
2356
+
1673
2357
 
1674
- <hr>
1675
- <dt>
1676
- <h4 class="name" id="startPFMotors"><span class="type-signature"></span>startPFMotors(channel, powerA, powerB)</h4>
2358
+ <span class="param-type">
2359
+ <a href="global.html#Color">Color</a>
2360
+ </span>
2361
+
1677
2362
 
2363
+
2364
+
2365
+
2366
+ </td>
2367
+
2368
+
2369
+
2370
+
2371
+
2372
+ <td class="description last">
2373
+
2374
+
2375
+ </td>
2376
+ </tr>
2377
+
1678
2378
 
1679
- </dt>
1680
- <dd>
2379
+ <tr>
2380
+
2381
+ <td class="name"><code>distance</code></td>
2382
+
2383
+
2384
+ <td class="type">
2385
+
2386
+
2387
+ <span class="param-type">
2388
+ number
2389
+ </span>
1681
2390
 
1682
2391
 
1683
- <div class="description">
1684
- <p>Start Power Functions motors running via IR</p>
1685
- <p>NOTE: This command is designed for bang-bang style operation. To keep the motors running, the sensor needs to be within range of the IR receiver constantly.</p>
1686
- </div>
2392
+
2393
+
2394
+
2395
+ </td>
2396
+
2397
+
2398
+
2399
+
2400
+
2401
+ <td class="description last">
2402
+ <p>Distance, in millimeters.</p>
2403
+
2404
+ </td>
2405
+ </tr>
2406
+
1687
2407
 
2408
+ </tbody>
2409
+ </table>
2410
+
2411
+
2412
+
2413
+
2414
+
2415
+ <dl class="details">
2416
+
2417
+
2418
+
2419
+
2420
+
2421
+
2422
+
2423
+
2424
+
2425
+
2426
+
2427
+
2428
+
2429
+
2430
+
2431
+
2432
+
2433
+
2434
+
2435
+
2436
+
2437
+
2438
+
2439
+
2440
+
2441
+
2442
+ <dt class="tag-source">Source:</dt>
2443
+ <dd class="tag-source">
2444
+ <ul class="dummy">
2445
+ <li>
2446
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line141">line 141</a>
2447
+ </li>
2448
+ </ul>
2449
+ </dd>
2450
+
2451
+
2452
+
2453
+
2454
+
2455
+
2456
+
2457
+ </dl>
2458
+
2459
+
2460
+
2461
+
2462
+
2463
+
1688
2464
 
1689
-
1690
2465
 
1691
-
1692
2466
 
1693
-
1694
-
1695
- <h5>Parameters:</h5>
1696
-
1697
2467
 
1698
- <table class="params table table-striped">
1699
- <thead>
1700
- <tr>
1701
-
1702
- <th>Name</th>
1703
-
1704
2468
 
1705
- <th>Type</th>
1706
2469
 
1707
-
1708
2470
 
2471
+
2472
+
1709
2473
 
1710
2474
 
1711
- <th class="last">Description</th>
1712
- </tr>
1713
- </thead>
1714
2475
 
1715
- <tbody>
1716
-
2476
+
1717
2477
 
1718
- <tr>
1719
-
1720
- <td class="name"><code>channel</code></td>
1721
-
2478
+ <span class='name-container'>
2479
+ <a class="link-icon" href="#event:distance">
2480
+ <svg height="20" width="20" style="fill: black;">
2481
+ <use xlink:href="#linkIcon"></use>
2482
+ </svg>
2483
+ </a>
2484
+ <h4 class="name" id="event:distance">
2485
+ <span class="type-signature"></span>distance<span class="type-signature"> :object</span>
2486
+ </h4>
2487
+ </span>
1722
2488
 
1723
- <td class="type">
1724
-
1725
-
1726
- <span class="param-type">Buffer</span>
2489
+
1727
2490
 
1728
2491
 
1729
2492
 
1730
-
1731
- </td>
2493
+ <div class="description">
2494
+ <p>Emits when a distance sensor is activated.</p>
2495
+ </div>
1732
2496
 
1733
-
1734
2497
 
1735
-
1736
2498
 
1737
- <td class="description last"><p>Channel number, between 1-4</p></td>
1738
- </tr>
1739
2499
 
1740
-
1741
2500
 
1742
- <tr>
1743
-
1744
- <td class="name"><code>powerA</code></td>
1745
-
1746
2501
 
1747
- <td class="type">
1748
-
1749
-
1750
- <span class="param-type">Buffer</span>
1751
2502
 
2503
+ <h5>Parameters:</h5>
2504
+
1752
2505
 
2506
+ <table class="params">
2507
+ <thead>
2508
+ <tr>
2509
+
2510
+ <th>Name</th>
2511
+
1753
2512
 
1754
-
1755
- </td>
2513
+ <th>Type</th>
1756
2514
 
1757
-
2515
+
1758
2516
 
1759
-
2517
+
1760
2518
 
1761
- <td class="description last"><p>7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.</p></td>
1762
- </tr>
2519
+ <th class="last">Description</th>
2520
+ </tr>
2521
+ </thead>
1763
2522
 
2523
+ <tbody>
1764
2524
 
2525
+ <tr>
2526
+
2527
+ <td class="name"><code>distance</code></td>
2528
+
1765
2529
 
1766
- <tr>
1767
-
1768
- <td class="name"><code>powerB</code></td>
1769
-
1770
-
1771
- <td class="type">
2530
+ <td class="type">
2531
+
1772
2532
 
1773
-
1774
- <span class="param-type">Buffer</span>
2533
+ <span class="param-type">
2534
+ number
2535
+ </span>
1775
2536
 
2537
+
1776
2538
 
1777
2539
 
1778
-
1779
- </td>
2540
+
2541
+ </td>
1780
2542
 
1781
-
2543
+
1782
2544
 
1783
-
2545
+
1784
2546
 
1785
- <td class="description last"><p>7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.</p></td>
1786
- </tr>
2547
+ <td class="description last">
2548
+ <p>Distance, in millimeters.</p>
2549
+
2550
+ </td>
2551
+ </tr>
1787
2552
 
1788
2553
 
1789
- </tbody>
2554
+ </tbody>
1790
2555
  </table>
1791
2556
 
1792
-
1793
2557
 
1794
-
1795
- <dl class="details">
1796
-
1797
2558
 
1798
-
1799
2559
 
1800
-
1801
2560
 
1802
-
2561
+ <dl class="details">
1803
2562
 
1804
-
2563
+
1805
2564
 
1806
-
2565
+
1807
2566
 
1808
-
2567
+
1809
2568
 
1810
-
2569
+
2570
+
2571
+
1811
2572
 
1812
-
2573
+
1813
2574
 
1814
-
2575
+
1815
2576
 
1816
-
2577
+
1817
2578
 
1818
-
2579
+
1819
2580
 
1820
-
2581
+
1821
2582
 
2583
+
1822
2584
 
2585
+
1823
2586
 
1824
-
1825
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1826
- <dd class="tag-source">
1827
- <ul class="dummy">
1828
- <li>
1829
- <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>,
1830
- <a href="devices_colordistancesensor.js.html#sunlight-1-line-130">line 130</a>
1831
- </li>
1832
- </ul>
1833
- </dd>
1834
-
2587
+
2588
+ <dt class="tag-source">Source:</dt>
2589
+ <dd class="tag-source">
2590
+ <ul class="dummy">
2591
+ <li>
2592
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line58">line 58</a>
2593
+ </li>
2594
+ </ul>
2595
+ </dd>
2596
+
1835
2597
 
1836
-
2598
+
1837
2599
 
1838
-
2600
+
1839
2601
 
1840
-
2602
+
1841
2603
  </dl>
1842
2604
 
1843
2605
 
1844
-
1845
-
1846
-
1847
2606
 
1848
-
1849
2607
 
1850
-
1851
2608
 
1852
-
1853
2609
 
1854
-
1855
- <h5>Returns:</h5>
1856
-
1857
-
1858
- <div class="param-desc">
1859
- <p>Resolved upon successful issuance of the command.</p>
1860
- </div>
1861
2610
 
1862
2611
 
1863
2612
 
1864
- <dl>
1865
- <dt>
1866
- Type
1867
- </dt>
1868
- <dd>
1869
-
1870
- <span class="param-type">Promise</span>
1871
2613
 
1872
2614
 
1873
2615
 
1874
- </dd>
1875
- </dl>
1876
2616
 
1877
2617
 
2618
+
1878
2619
 
1879
2620
 
1880
-
1881
- </dd>
1882
2621
 
1883
- </dl>
1884
-
2622
+
1885
2623
 
1886
-
2624
+ <span class='name-container'>
2625
+ <a class="link-icon" href="#event:distanceCount">
2626
+ <svg height="20" width="20" style="fill: black;">
2627
+ <use xlink:href="#linkIcon"></use>
2628
+ </svg>
2629
+ </a>
2630
+ <h4 class="name" id="event:distanceCount">
2631
+ <span class="type-signature"></span>distanceCount<span class="type-signature"> :object</span>
2632
+ </h4>
2633
+ </span>
1887
2634
 
1888
-
1889
- <h3 class="subsection-title">Events</h3>
2635
+
1890
2636
 
1891
- <dl>
1892
-
1893
- <hr>
1894
- <dt>
1895
- <h4 class="name" id="event:color">color</h4>
1896
-
1897
-
1898
- </dt>
1899
- <dd>
1900
2637
 
1901
-
1902
- <div class="description">
1903
- <p>Emits when a color sensor is activated.</p>
1904
- </div>
1905
-
1906
2638
 
1907
-
2639
+ <div class="description">
2640
+ <p>Emits when distance is reduced to less than 10 centimeters.</p>
2641
+ </div>
1908
2642
 
1909
-
1910
- <h5>Type:
1911
- <span class="param-type">object</span>
1912
2643
 
1913
2644
 
1914
- </h5>
1915
-
1916
2645
 
1917
-
1918
-
1919
- <h5>Parameters:</h5>
1920
-
1921
2646
 
1922
- <table class="params table table-striped">
1923
- <thead>
2647
+
2648
+
2649
+ <h5>Parameters:</h5>
2650
+
2651
+
2652
+ <table class="params">
2653
+ <thead>
1924
2654
  <tr>
1925
-
2655
+
1926
2656
  <th>Name</th>
1927
-
2657
+
1928
2658
 
1929
- <th>Type</th>
2659
+ <th>Type</th>
1930
2660
 
1931
-
2661
+
1932
2662
 
1933
-
2663
+
1934
2664
 
1935
- <th class="last">Description</th>
2665
+ <th class="last">Description</th>
1936
2666
  </tr>
1937
- </thead>
2667
+ </thead>
1938
2668
 
1939
- <tbody>
2669
+ <tbody>
1940
2670
 
2671
+ <tr>
2672
+
2673
+ <td class="name"><code>number</code></td>
2674
+
1941
2675
 
1942
- <tr>
1943
-
1944
- <td class="name"><code>color</code></td>
1945
-
1946
-
1947
- <td class="type">
2676
+ <td class="type">
2677
+
1948
2678
 
1949
-
1950
- <span class="param-type">Color</span>
2679
+ <span class="param-type">
2680
+ number
2681
+ </span>
1951
2682
 
2683
+
1952
2684
 
1953
2685
 
1954
-
1955
- </td>
2686
+
2687
+ </td>
1956
2688
 
1957
-
2689
+
1958
2690
 
1959
-
2691
+
1960
2692
 
1961
- <td class="description last"></td>
1962
- </tr>
2693
+ <td class="description last">
2694
+ <p>of distance events.</p>
2695
+
2696
+ </td>
2697
+ </tr>
1963
2698
 
1964
2699
 
1965
- </tbody>
2700
+ </tbody>
1966
2701
  </table>
1967
2702
 
1968
-
1969
2703
 
1970
-
1971
- <dl class="details">
1972
-
1973
2704
 
1974
-
1975
2705
 
1976
-
1977
2706
 
1978
-
2707
+ <dl class="details">
2708
+
2709
+
1979
2710
 
1980
-
2711
+
1981
2712
 
1982
-
2713
+
1983
2714
 
1984
-
2715
+
1985
2716
 
1986
-
2717
+
1987
2718
 
1988
-
2719
+
1989
2720
 
1990
-
2721
+
1991
2722
 
1992
-
2723
+
1993
2724
 
1994
-
2725
+
1995
2726
 
1996
-
2727
+
1997
2728
 
2729
+
1998
2730
 
2731
+
1999
2732
 
2000
-
2001
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2002
- <dd class="tag-source">
2003
- <ul class="dummy">
2004
- <li>
2005
- <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>,
2006
- <a href="devices_colordistancesensor.js.html#sunlight-1-line-39">line 39</a>
2007
- </li>
2008
- </ul>
2009
- </dd>
2010
-
2733
+
2734
+ <dt class="tag-source">Source:</dt>
2735
+ <dd class="tag-source">
2736
+ <ul class="dummy">
2737
+ <li>
2738
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line76">line 76</a>
2739
+ </li>
2740
+ </ul>
2741
+ </dd>
2742
+
2011
2743
 
2012
-
2744
+
2013
2745
 
2014
-
2746
+
2015
2747
 
2016
-
2748
+
2017
2749
  </dl>
2018
2750
 
2019
2751
 
2020
-
2021
-
2022
-
2023
2752
 
2024
-
2025
2753
 
2026
-
2027
2754
 
2028
-
2029
2755
 
2030
-
2031
2756
 
2032
-
2033
- </dd>
2034
2757
 
2035
-
2036
-
2037
- <hr>
2038
- <dt>
2039
- <h4 class="name" id="event:colorAndDistance">colorAndDistance</h4>
2040
-
2041
-
2042
- </dt>
2043
- <dd>
2044
2758
 
2045
-
2046
- <div class="description">
2047
- <p>A combined color and distance event, emits when the sensor is activated.</p>
2048
- </div>
2049
-
2050
2759
 
2051
-
2052
2760
 
2053
-
2054
- <h5>Type:
2055
- <span class="param-type">object</span>
2056
2761
 
2057
2762
 
2058
- </h5>
2059
-
2060
2763
 
2061
-
2062
-
2063
- <h5>Parameters:</h5>
2764
+
2064
2765
 
2065
2766
 
2066
- <table class="params table table-striped">
2067
- <thead>
2068
- <tr>
2069
-
2070
- <th>Name</th>
2071
-
2072
2767
 
2073
- <th>Type</th>
2768
+
2074
2769
 
2075
-
2770
+ <span class='name-container'>
2771
+ <a class="link-icon" href="#event:reflect">
2772
+ <svg height="20" width="20" style="fill: black;">
2773
+ <use xlink:href="#linkIcon"></use>
2774
+ </svg>
2775
+ </a>
2776
+ <h4 class="name" id="event:reflect">
2777
+ <span class="type-signature"></span>reflect<span class="type-signature"> :object</span>
2778
+ </h4>
2779
+ </span>
2076
2780
 
2077
-
2781
+
2078
2782
 
2079
- <th class="last">Description</th>
2080
- </tr>
2081
- </thead>
2082
2783
 
2083
- <tbody>
2084
-
2085
2784
 
2086
- <tr>
2087
-
2088
- <td class="name"><code>color</code></td>
2089
-
2785
+ <div class="description">
2786
+ <p>Event measuring reflection change, emits when the sensor is activated.</p>
2787
+ </div>
2090
2788
 
2091
- <td class="type">
2092
-
2093
-
2094
- <span class="param-type">Color</span>
2095
2789
 
2096
2790
 
2097
2791
 
2098
-
2099
- </td>
2100
2792
 
2101
-
2102
2793
 
2103
-
2104
2794
 
2105
- <td class="description last"></td>
2106
- </tr>
2795
+ <h5>Parameters:</h5>
2796
+
2107
2797
 
2108
-
2798
+ <table class="params">
2799
+ <thead>
2800
+ <tr>
2801
+
2802
+ <th>Name</th>
2803
+
2109
2804
 
2110
- <tr>
2111
-
2112
- <td class="name"><code>distance</code></td>
2113
-
2805
+ <th>Type</th>
2114
2806
 
2115
- <td class="type">
2116
-
2117
-
2118
- <span class="param-type">number</span>
2807
+
2119
2808
 
2809
+
2120
2810
 
2811
+ <th class="last">Description</th>
2812
+ </tr>
2813
+ </thead>
2121
2814
 
2122
-
2123
- </td>
2815
+ <tbody>
2816
+
2817
+ <tr>
2818
+
2819
+ <td class="name"><code>percentage</code></td>
2820
+
2124
2821
 
2822
+ <td class="type">
2823
+
2125
2824
 
2825
+ <span class="param-type">
2826
+ number
2827
+ </span>
2126
2828
 
2127
-
2829
+
2128
2830
 
2129
- <td class="description last"><p>Distance, in millimeters.</p></td>
2130
- </tr>
2131
2831
 
2132
-
2133
- </tbody>
2134
- </table>
2832
+
2833
+ </td>
2135
2834
 
2136
-
2835
+
2836
+
2837
+
2838
+
2839
+ <td class="description last">
2840
+ <p>from 0 to 100.</p>
2841
+
2842
+ </td>
2843
+ </tr>
2137
2844
 
2138
2845
 
2139
- <dl class="details">
2140
-
2846
+ </tbody>
2847
+ </table>
2141
2848
 
2142
-
2143
2849
 
2144
-
2145
2850
 
2146
-
2147
2851
 
2148
-
2149
2852
 
2150
-
2853
+ <dl class="details">
2151
2854
 
2152
-
2855
+
2153
2856
 
2154
-
2857
+
2155
2858
 
2156
-
2859
+
2157
2860
 
2158
-
2861
+
2159
2862
 
2160
-
2863
+
2161
2864
 
2162
-
2865
+
2163
2866
 
2164
-
2867
+
2165
2868
 
2869
+
2166
2870
 
2871
+
2167
2872
 
2168
-
2169
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2170
- <dd class="tag-source">
2171
- <ul class="dummy">
2172
- <li>
2173
- <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>,
2174
- <a href="devices_colordistancesensor.js.html#sunlight-1-line-76">line 76</a>
2175
- </li>
2176
- </ul>
2177
- </dd>
2178
-
2873
+
2179
2874
 
2180
-
2875
+
2181
2876
 
2182
-
2877
+
2183
2878
 
2184
-
2185
- </dl>
2879
+
2880
+ <dt class="tag-source">Source:</dt>
2881
+ <dd class="tag-source">
2882
+ <ul class="dummy">
2883
+ <li>
2884
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line89">line 89</a>
2885
+ </li>
2886
+ </ul>
2887
+ </dd>
2888
+
2186
2889
 
2890
+
2187
2891
 
2188
-
2892
+
2189
2893
 
2190
-
2894
+
2895
+ </dl>
2191
2896
 
2192
-
2193
2897
 
2194
-
2195
2898
 
2196
-
2197
2899
 
2198
-
2199
2900
 
2200
-
2201
- </dd>
2202
2901
 
2203
-
2204
-
2205
- <hr>
2206
- <dt>
2207
- <h4 class="name" id="event:distance">distance</h4>
2208
-
2209
-
2210
- </dt>
2211
- <dd>
2212
2902
 
2213
-
2214
- <div class="description">
2215
- <p>Emits when a distance sensor is activated.</p>
2216
- </div>
2217
-
2218
2903
 
2219
-
2220
2904
 
2221
-
2222
- <h5>Type:
2223
- <span class="param-type">object</span>
2224
2905
 
2225
2906
 
2226
- </h5>
2227
-
2228
2907
 
2229
-
2230
-
2231
- <h5>Parameters:</h5>
2232
-
2233
2908
 
2234
- <table class="params table table-striped">
2235
- <thead>
2236
- <tr>
2237
-
2238
- <th>Name</th>
2909
+
2910
+
2239
2911
 
2240
2912
 
2241
- <th>Type</th>
2242
2913
 
2243
-
2914
+
2244
2915
 
2245
-
2916
+ <span class='name-container'>
2917
+ <a class="link-icon" href="#event:rgbIntensity">
2918
+ <svg height="20" width="20" style="fill: black;">
2919
+ <use xlink:href="#linkIcon"></use>
2920
+ </svg>
2921
+ </a>
2922
+ <h4 class="name" id="event:rgbIntensity">
2923
+ <span class="type-signature"></span>rgbIntensity<span class="type-signature"> :object</span>
2924
+ </h4>
2925
+ </span>
2246
2926
 
2247
- <th class="last">Description</th>
2248
- </tr>
2249
- </thead>
2927
+
2250
2928
 
2251
- <tbody>
2252
-
2253
2929
 
2254
- <tr>
2255
-
2256
- <td class="name"><code>distance</code></td>
2257
-
2258
2930
 
2259
- <td class="type">
2260
-
2261
-
2262
- <span class="param-type">number</span>
2931
+ <div class="description">
2932
+ <p>Emits when a color sensor is activated.</p>
2933
+ </div>
2263
2934
 
2264
2935
 
2265
2936
 
2266
-
2267
- </td>
2268
2937
 
2269
-
2270
2938
 
2271
-
2272
2939
 
2273
- <td class="description last"><p>Distance, in millimeters.</p></td>
2274
- </tr>
2275
2940
 
2276
-
2277
- </tbody>
2278
- </table>
2941
+ <h5>Parameters:</h5>
2942
+
2279
2943
 
2280
-
2944
+ <table class="params">
2945
+ <thead>
2946
+ <tr>
2947
+
2948
+ <th>Name</th>
2949
+
2281
2950
 
2282
-
2283
- <dl class="details">
2284
-
2951
+ <th>Type</th>
2285
2952
 
2286
-
2953
+
2287
2954
 
2288
-
2955
+
2289
2956
 
2290
-
2957
+ <th class="last">Description</th>
2958
+ </tr>
2959
+ </thead>
2291
2960
 
2961
+ <tbody>
2292
2962
 
2963
+ <tr>
2964
+
2965
+ <td class="name"><code>red</code></td>
2966
+
2293
2967
 
2294
-
2968
+ <td class="type">
2969
+
2970
+
2971
+ <span class="param-type">
2972
+ number
2973
+ </span>
2295
2974
 
2296
2975
 
2297
2976
 
2298
-
2299
2977
 
2300
-
2978
+
2979
+ </td>
2301
2980
 
2302
-
2981
+
2303
2982
 
2304
-
2983
+
2305
2984
 
2306
-
2985
+ <td class="description last">
2986
+
2987
+
2988
+ </td>
2989
+ </tr>
2307
2990
 
2308
-
2991
+
2992
+ <tr>
2993
+
2994
+ <td class="name"><code>green</code></td>
2995
+
2309
2996
 
2997
+ <td class="type">
2998
+
2999
+
3000
+ <span class="param-type">
3001
+ number
3002
+ </span>
2310
3003
 
3004
+
2311
3005
 
2312
-
2313
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2314
- <dd class="tag-source">
2315
- <ul class="dummy">
2316
- <li>
2317
- <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>,
2318
- <a href="devices_colordistancesensor.js.html#sunlight-1-line-57">line 57</a>
2319
- </li>
2320
- </ul>
2321
- </dd>
2322
-
2323
3006
 
2324
-
3007
+
3008
+ </td>
2325
3009
 
2326
-
3010
+
2327
3011
 
2328
-
2329
- </dl>
3012
+
2330
3013
 
3014
+ <td class="description last">
3015
+
3016
+
3017
+ </td>
3018
+ </tr>
2331
3019
 
2332
3020
 
3021
+ <tr>
3022
+
3023
+ <td class="name"><code>blue</code></td>
3024
+
2333
3025
 
2334
-
3026
+ <td class="type">
3027
+
3028
+
3029
+ <span class="param-type">
3030
+ number
3031
+ </span>
2335
3032
 
2336
3033
 
2337
3034
 
2338
-
2339
3035
 
2340
-
3036
+
3037
+ </td>
2341
3038
 
2342
-
3039
+
2343
3040
 
2344
-
2345
- </dd>
3041
+
3042
+
3043
+ <td class="description last">
3044
+
3045
+
3046
+ </td>
3047
+ </tr>
2346
3048
 
2347
- </dl>
2348
3049
 
2349
- </article>
3050
+ </tbody>
3051
+ </table>
2350
3052
 
2351
- </section>
2352
3053
 
2353
3054
 
2354
3055
 
2355
3056
 
2356
- </div>
2357
- </div>
3057
+ <dl class="details">
2358
3058
 
2359
- <div class="clearfix"></div>
3059
+
2360
3060
 
2361
-
2362
- <div class="col-md-3">
2363
- <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
2364
- </div>
2365
-
3061
+
2366
3062
 
2367
- </div>
2368
- </div>
3063
+
2369
3064
 
3065
+
2370
3066
 
2371
- <div class="modal fade" id="searchResults">
2372
- <div class="modal-dialog">
2373
- <div class="modal-content">
2374
- <div class="modal-header">
2375
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
2376
- <h4 class="modal-title">Search results</h4>
2377
- </div>
2378
- <div class="modal-body"></div>
2379
- <div class="modal-footer">
2380
- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
2381
- </div>
2382
- </div><!-- /.modal-content -->
2383
- </div><!-- /.modal-dialog -->
2384
- </div>
3067
+
2385
3068
 
3069
+
2386
3070
 
2387
- <footer>
3071
+
2388
3072
 
3073
+
2389
3074
 
2390
- <span class="copyright">
2391
- node-poweredup by Nathan Kellenicki licensed under the MIT license.
2392
- </span>
3075
+
2393
3076
 
2394
- <span class="jsdoc-message">
2395
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a>
2396
-
2397
- on Tue Apr 6th 2021
2398
-
2399
- using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
2400
- </span>
2401
- </footer>
3077
+
2402
3078
 
2403
- <script src="scripts/docstrap.lib.js"></script>
2404
- <script src="scripts/toc.js"></script>
3079
+
2405
3080
 
2406
- <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
3081
+
3082
+
3083
+
3084
+ <dt class="tag-source">Source:</dt>
3085
+ <dd class="tag-source">
3086
+ <ul class="dummy">
3087
+ <li>
3088
+ <a href="devices_colordistancesensor.js.html">devices/colordistancesensor.js</a>, <a href="devices_colordistancesensor.js.html#line121">line 121</a>
3089
+ </li>
3090
+ </ul>
3091
+ </dd>
3092
+
3093
+
3094
+
3095
+
3096
+
3097
+
3098
+
3099
+ </dl>
2407
3100
 
2408
3101
 
2409
- <script>
2410
- $( function () {
2411
- $( "[id*='$']" ).each( function () {
2412
- var $this = $( this );
2413
3102
 
2414
- $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
2415
- } );
2416
3103
 
2417
- $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
2418
- var $this = $( this );
2419
3104
 
2420
- var example = $this.find( "code" );
2421
- exampleText = example.html();
2422
- var lang = /{@lang (.*?)}/.exec( exampleText );
2423
- if ( lang && lang[1] ) {
2424
- exampleText = exampleText.replace( lang[0], "" );
2425
- example.html( exampleText );
2426
- lang = lang[1];
2427
- } else {
2428
- var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
2429
- lang = langClassMatch ? langClassMatch[1] : "javascript";
2430
- }
2431
3105
 
2432
- if ( lang ) {
2433
3106
 
2434
- $this
2435
- .addClass( "sunlight-highlight-" + lang )
2436
- .addClass( "linenums" )
2437
- .html( example.html() );
2438
3107
 
2439
- }
2440
- } );
2441
3108
 
2442
- Sunlight.highlightAll( {
2443
- lineNumbers : true,
2444
- showMenu : true,
2445
- enableDoclinks : true
2446
- } );
2447
3109
 
2448
- $.catchAnchorLinks( {
2449
- navbarOffset: 10
2450
- } );
2451
- $( "#toc" ).toc( {
2452
- anchorName : function ( i, heading, prefix ) {
2453
- return $( heading ).attr( "id" ) || ( prefix + i );
2454
- },
2455
- selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
2456
- showAndHide : false,
2457
- smoothScrolling: true
2458
- } );
2459
3110
 
2460
- $( "#main span[id^='toc']" ).addClass( "toc-shim" );
2461
- $( '.dropdown-toggle' ).dropdown();
2462
3111
 
2463
- $( "table" ).each( function () {
2464
- var $this = $( this );
2465
- $this.addClass('table');
2466
- } );
2467
3112
 
2468
- } );
2469
- </script>
2470
3113
 
3114
+
3115
+
3116
+ </article>
3117
+ </section>
2471
3118
 
2472
3119
 
2473
- <!--Navigation and Symbol Display-->
2474
3120
 
2475
3121
 
2476
- <!--Google Analytics-->
3122
+ </div>
2477
3123
 
3124
+ <br class="clear">
2478
3125
 
3126
+ <footer>
3127
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a>
3128
+ </footer>
2479
3129
 
2480
- <script type="text/javascript">
2481
- $(document).ready(function() {
2482
- SearcherDisplay.init();
2483
- });
2484
- </script>
3130
+ <script src="scripts/linenumber.js"></script>
3131
+ <script src="scripts/pagelocation.js"></script>
2485
3132
 
3133
+
2486
3134
 
2487
3135
  </body>
2488
3136
  </html>