{"_id":"@agilatech/vl6180","_rev":"6-eeaf0f95fe37d10e48ee650ef813e377","name":"@agilatech/vl6180","description":"Driver for the VL6180 Sensor","dist-tags":{"latest":"0.6.1"},"versions":{"0.6.0":{"name":"@agilatech/vl6180","version":"0.6.0","description":"Driver for the VL6180 Sensor","main":"./build/Release/vl6180","gypfile":true,"scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/Agilatech/vl6180.git"},"keywords":["Sensor","proximity","distance","ambient light","lux","VL6180","VL6180X"],"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"license":"MIT","gitHead":"72d36be047509e51125204a0cca4a5d14b8248fb","bugs":{"url":"https://github.com/Agilatech/vl6180/issues"},"homepage":"https://github.com/Agilatech/vl6180#readme","_id":"@agilatech/vl6180@0.6.0","_shasum":"761b3f6c5ae51dd3c01a9ff0124d0b6a061ac77a","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"scotty","email":"scott@agilatech.com"},"dist":{"shasum":"761b3f6c5ae51dd3c01a9ff0124d0b6a061ac77a","tarball":"https://registry.npmjs.org/@agilatech/vl6180/-/vl6180-0.6.0.tgz","integrity":"sha512-zC1sFYptOMxJso4V0r9KXKlnql6LytVkJtS/z3/uX3WFonyeP+BHIrtL9attXPPevPDgAzihZAl5od8SjLIfAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDs+0RyK442PDkcC8UMyKj7XxwJxNZSYTA/4qwbS7OIQAIgAikOgqNPGEeP/g86IJqDckJ5coLke20Nsyfr9+vV+iM="}]},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vl6180-0.6.0.tgz_1501270540095_0.5033669276162982"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.6.1":{"name":"@agilatech/vl6180","version":"0.6.1","description":"Driver for the VL6180 Sensor","main":"./build/Release/vl6180","gypfile":true,"scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/Agilatech/vl6180.git"},"keywords":["Sensor","proximity","distance","ambient light","lux","VL6180","VL6180X"],"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"license":"MIT","gitHead":"3a3006e047e4623920a176578cffbb07e9f770ea","bugs":{"url":"https://github.com/Agilatech/vl6180/issues"},"homepage":"https://github.com/Agilatech/vl6180#readme","_id":"@agilatech/vl6180@0.6.1","_shasum":"05da0a8cfb6c17a5e3a2d37efc4877de6b0db990","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"scotty","email":"scott@agilatech.com"},"dist":{"shasum":"05da0a8cfb6c17a5e3a2d37efc4877de6b0db990","tarball":"https://registry.npmjs.org/@agilatech/vl6180/-/vl6180-0.6.1.tgz","integrity":"sha512-RR5LyMJ+VpvI6KrXG8lkURTlOQzLHdg0HYde2NpMdtELqT3novZvXKam/MMWcdnzlLUKF49W/Qqf+eSpOwyAiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4+CwEwssi4TN4GGWj9IGyZ9aTpXA1KpMlWnovvUejegIhANYGyFiP4vXVqX7b0TcHbt3h5tb1MV9twfJFl/FBx4VJ"}]},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vl6180-0.6.1.tgz_1501270898159_0.7147600275930017"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"readme":"##Node addon for hardware VL6180 sensor\n\n#####This addon should work on any Linux platform, and has been thoroughly tested on BBB\n\n###Install\nNotably, this module is not dependant on any other modules except node-gyp for compilation.\n\n```\nnpm install @agilatech/vl6180\n```\nOR\n```\ngit clone https://github.com/Agilatech/vl6180.git\nnode-gyp configure build\n```\n\n###Usage\n#####Load the module and create an instance\n```\nconst addon = require('@agilatech/vl6180');\n\n// create an instance on the /dev/i2c-1 I2C file at address 0x29\nconst vl6180 = new addon.Vl6180('/dev/i2c-1', 0x29);\n```\n#####Get basic device info\n```\nconst name = vl6180.deviceName();  // returns string with name of device\nconst type = vl6180.deviceType();  // returns string with type of device\nconst version = vl6180.deviceVersion(); // returns this software version\nconst active = vl6180.deviceActive(); // true if active, false if inactive\nconst numVals =  vl6180.deviceNumValues(); // returns the number of paramters sensed\n```\n####Get parameter info and values\n```\nconst paramName0 = vl6180.nameAtIndex(0);\nconst paramType0 = vl6180.typeAtIndex(0);\nconst paramVal0  = vl6180.valueAtIndexSync(0);\n\nconst paramName1 = vl6180.nameAtIndex(1);\nconst paramType1 = vl6180.typeAtIndex(1);\nconst paramVal1  = vl6180.valueAtIndexSync(1);\n```\n####Asynchronous value collection is also available\n```\nvl6180.valueAtIndex(0, function(err, val) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(`Asynchronous call return: ${val}`);\n    }\n});\n```\n\n###Operation Notes\nThe VL6180 is a \"Time of Flight\" distance/proximity sensor.  It measures the time the IR emitted light takes to traverse the distance.  This unit measures from 0-100mm.  Note that beyond 100mm, the value returned is 255. The sensor also includes a lux light sensor.\n\nIn addition to the device info, this module returns name, type, and value at two indicies, 0 and 1.  Index 0 is for range, while index 1 is for lux.  Typical usage might look like this:\n\n```\nconst range  = vl6180.valueAtIndexSync(0);\nconst lux = vl6180.valueAtIndexSync(1);\n```\n\n\n\n###Dependencies\n* node-gyp\n\n\n###Copyright\nCopyright © 2017 Agilatech. All Rights Reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","maintainers":[{"email":"scott@agilatech.com","name":"scotty"}],"time":{"modified":"2023-10-25T22:49:41.452Z","created":"2017-07-28T19:35:41.030Z","0.6.0":"2017-07-28T19:35:41.030Z","0.6.1":"2017-07-28T19:41:39.271Z"},"homepage":"https://github.com/Agilatech/vl6180#readme","keywords":["Sensor","proximity","distance","ambient light","lux","VL6180","VL6180X"],"repository":{"type":"git","url":"git+https://github.com/Agilatech/vl6180.git"},"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"bugs":{"url":"https://github.com/Agilatech/vl6180/issues"},"license":"MIT","readmeFilename":"README.md"}