{"_id":"accel-mma84","_rev":"36-58e6c584bb4903687da1d8e3daabc6aa","name":"accel-mma84","description":"Library to run the MMA8452Q accelerometer.","dist-tags":{"latest":"0.2.4"},"versions":{"0.0.1":{"name":"accel-mma84","version":"0.0.1","description":"Wait for it...","main":"index.js","bin":{"tessel":"./index.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":"","license":"BSD","_id":"accel-mma84@0.0.1","dist":{"shasum":"2430d3604f7c09fefdd90e04aaf4bba33cd2fb00","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.0.1.tgz","integrity":"sha512-iXk9mDIPR+NC0fWyTPcV8vj1/X9KMHjzLz4U4qI+KrSeDoMd/6oHC/FuMS8wp4m1pgjO1wnHDz4AoqISeZbBXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgCRr/bRBy2m1Qq/F0aA1YVkuwWxNkc/pFnTGiJOqRCQIgSkATNkHo/Yn74wb8vEGAreivPtbWQ6CgGjtiYZWv7gg="}]},"_from":".","_npmVersion":"1.2.24","_npmUser":{"name":"tcr","email":"id@timryan.org"},"maintainers":[{"name":"tcr","email":"id@timryan.org"}],"directories":{}},"0.1.0":{"name":"accel-mma84","version":"0.1.0","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","_id":"accel-mma84@0.1.0","dist":{"shasum":"7daa89b3871827a8be5cd3c806b796e5bc326f47","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.1.0.tgz","integrity":"sha512-/WDJZPe7GtwiolqaPo0dcjQCGMq8GcddXfvowcurthftYQt7DhhhzKkNx6xXtDzPKcYbuI2tEh/RCySLNtb/Kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyOqGR/brkoS79pL1ZSvrmHvBupoBgWvJ2OOdR/RzJKAiEA4AejBsZcC5OsAgQTOppY/KlRgbK26Y/NydLpM/iFaLg="}]},"_from":".","_npmVersion":"1.2.24","_npmUser":{"name":"tcr","email":"id@timryan.org"},"maintainers":[{"name":"tcr","email":"id@timryan.org"}]},"0.0.2":{"name":"accel-mma84","version":"0.0.2","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","_id":"accel-mma84@0.0.2","dist":{"shasum":"6d303a2d7b59a592955b57fc0f4ba18fe6995d90","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.0.2.tgz","integrity":"sha512-tI/cbO4RNZQqvyBtY2NDMYE1cTnznbk0crZmMMlmYgBW1vas8FizgDI1+n2LMuAn+sdDV8OJPmXnZThg+rwPDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDREuKrGfj8WCmg0X8L911WWeHDkzx19PqHDdhNdDu3zAIgbGtWRBx5NwjF8//9nntt+KCHsvI9Hl0hceRqSTul8YU="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"tcr","email":"id@timryan.org"},"maintainers":[{"name":"tcr","email":"id@timryan.org"}]},"0.0.3":{"name":"accel-mma84","version":"0.0.3","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","_id":"accel-mma84@0.0.3","dist":{"shasum":"4a62a43f006e2f9047e4f8adcfb7cf227c88f702","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.0.3.tgz","integrity":"sha512-E7mIzcWr9KO4wUEU8ZjGPuJR0LrhqxEa7kHDCl7vYPt6aqpSQPeEoyvR72Kw706nab54trqyhQPEEiFe6uIdNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHsbPw4H5GJcLbWunt4HwgldpVRtFcXK2/5IFvNNUTyZAiBf+7rFtJwScsSvqE2dl3PL5rj6MWtBFYQ8FNeNyG32iQ=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"tcr","email":"id@timryan.org"},"maintainers":[{"name":"tcr","email":"id@timryan.org"}]},"0.0.4":{"name":"accel-mma84","version":"0.0.4","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"hardware":{"./examples":false},"repository":"","author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","_id":"accel-mma84@0.0.4","dist":{"shasum":"87db8869a7685343dddc1846824b7ddc5694e7c0","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.0.4.tgz","integrity":"sha512-IisVnaOQpeiqbJX1u0GLn1xnTQK18l3DNQjLEIRiXNxvv5NLhA18Av0czmNmoFxeAiNZsrkCDCvOkWPgsrNNqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCskxTAGE8L7sFmuuRInoADKnNdzPJ/VyUYdUJulooAGQIgLwQch7g6ej0mlaHGqvzCld2bGn5WtkK83AjgBGjJWF0="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"tcr","email":"id@timryan.org"},"maintainers":[{"name":"tcr","email":"id@timryan.org"}]},"0.0.5":{"name":"accel-mma84","version":"0.0.5","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"hardware":{"./examples":false},"repository":"","author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","_id":"accel-mma84@0.0.5","dist":{"shasum":"668356853b8f3e540389ff7c6d57aa4008407fd0","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.0.5.tgz","integrity":"sha512-4H6tiFRuDeMyedplq858hrfTUBcDWuF0zvcKXh56nmmhg+SsU2VVPda6B5lfXP7o2F+wp/uP4lnhcxurUIDi6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICeAgP806SNmCRs8jreJTne4Jkb3J6No+Aejh6887HB1AiBA5SznBWHFn4P5EUhGBupp1OHwH1We8RqLVkrVCFBPvw=="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"tcr","email":"id@timryan.org"},"maintainers":[{"name":"tcr","email":"id@timryan.org"}]},"0.0.55":{"name":"accel-mma84","version":"0.0.55","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"hardware":{"./examples":false},"repository":"","author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","_id":"accel-mma84@0.0.55","dist":{"shasum":"9ed8e938c52728cdea7682519561289020d9505a","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.0.55.tgz","integrity":"sha512-s9Rmf4x8OmeGJPS/2goeUBouU2d5Zxtx0VbNpfoMMqxpRFsrBUnDcHbq7n02Stx2Bvg0Adm8po45F0LNVnZqfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEw2l9aeRE8TNmxPdefXZUHFy2C5zmK1YAp+fZkCpojBAiEAqgkf7Wlend3aBIo7EDs0fhu9V7JQMliQOBFh9D2Vefw="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"technicalmachine","email":"team@technical.io"},"maintainers":[{"name":"tcr","email":"id@timryan.org"},{"name":"technicalmachine","email":"team@technical.io"}]},"0.0.6":{"name":"accel-mma84","version":"0.0.6","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"sync-queue":"0.0.1"},"hardware":{"./examples":false},"repository":"","author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","_id":"accel-mma84@0.0.6","dist":{"shasum":"ec4da4dff6c88257e69dce8447d715d89befd1eb","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.0.6.tgz","integrity":"sha512-HSYk89043+IvW8pWzl1Ba4zQ/0NtvCvMIlvV5bTt1YGPBkpdCWpMcTrpIS7VzTSQ/y9twQvBTMfsKYLtJrsufA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGTcYT6M8DAz/mg3vS8pi2HjP57hpigSP7Jh+oyMqLgiAiEAnW6t4zuOgc+id0Tt9h/tFKBVDhw90hZRDWYwjDKc/Fo="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"technicalmachine","email":"team@technical.io"},"maintainers":[{"name":"tcr","email":"id@timryan.org"},{"name":"technicalmachine","email":"team@technical.io"}]},"0.2.0":{"name":"accel-mma84","version":"0.2.0","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","dependencies":{"sync-queue":"0.0.1"},"hardware":{"./examples":false},"scripts":{"test":"./testsuite.js"},"devDependencies":{"tape":"~2.3.2","tap":"git+https://github.com/tcr/node-tap.git#3cb76e","shelljs":"~0.3.0"},"repository":{"type":"git","url":"https://github.com/tessel/accel-mma84"},"author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","bugs":{"url":"https://github.com/tessel/accel-mma84/issues"},"homepage":"https://github.com/tessel/accel-mma84","_id":"accel-mma84@0.2.0","dist":{"shasum":"5fbfff733f10f387cf9ac7053fd129e98b070bcb","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.2.0.tgz","integrity":"sha512-BsjZsFpvVMTrg2/kldToBTHv3VGpPuwO/8C9aP/bf/fEh8TnDBetgRagLb0cCJpxa+uKduMRqCtNj/EGHjsKwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6VVYZHY+Fr71sTOuFrWrZtuDuL1c5JzSBj9l2IYVUmwIgREI2NVVQpBa+hwvVcjUONS5gYhsiKOi2393GUqCaudw="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"tcr","email":"id@timryan.org"},"maintainers":[{"name":"tcr","email":"id@timryan.org"},{"name":"technicalmachine","email":"team@technical.io"}]},"0.2.1":{"name":"accel-mma84","version":"0.2.1","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"tinytap -e 'tessel run {} ${ACCEL_PORT}' test/*.js"},"dependencies":{"sync-queue":"0.0.1"},"hardware":{"./examples":false},"repository":{"type":"git","url":"https://github.com/tessel/accel-mma84"},"author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","devDependencies":{"tinytap":"~0.0.2"},"gitHead":"ab3a8d5aeae7354c4c70bd4978efaf34e136eec4","bugs":{"url":"https://github.com/tessel/accel-mma84/issues"},"homepage":"https://github.com/tessel/accel-mma84","_id":"accel-mma84@0.2.1","_shasum":"50682ec127f25fec4de7ee0b6e4b9d5891eb9ca2","_from":".","_npmVersion":"1.4.11","_npmUser":{"name":"tcr","email":"id@timryan.org"},"maintainers":[{"name":"tcr","email":"id@timryan.org"},{"name":"technicalmachine","email":"team@technical.io"}],"dist":{"shasum":"50682ec127f25fec4de7ee0b6e4b9d5891eb9ca2","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.2.1.tgz","integrity":"sha512-wuVYRcLt0IWD5F2e78svrg3L+2Ak8JkY9NXS60nwbIYxoqgu76LxWPpZ3N9Dn6b8tZOmVNbnber4U7tuVMB7+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE1DagazmiXVhZIqENyaISwP0wjN5W8mgllbebu1cgJ9AiB74Lbsj0a+XkkU19WnZp83BWxjGn6zEwvGBeP2WTTm7w=="}]}},"0.2.2":{"name":"accel-mma84","version":"0.2.2","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"tinytap -e 'tessel run {} ${ACCEL_PORT}' test/*.js"},"dependencies":{"sync-queue":"0.0.1"},"hardware":{"./examples":false},"repository":{"type":"git","url":"https://github.com/tessel/accel-mma84"},"author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","devDependencies":{"tinytap":"~0.0.2"},"gitHead":"803d79df33ccec356c429afc010b37f925b693c4","bugs":{"url":"https://github.com/tessel/accel-mma84/issues"},"homepage":"https://github.com/tessel/accel-mma84","_id":"accel-mma84@0.2.2","_shasum":"49c830c3a1e169a0100f44b345e32fa326f2c3ab","_from":".","_npmVersion":"1.4.11","_npmUser":{"name":"tcr","email":"id@timryan.org"},"maintainers":[{"name":"tcr","email":"id@timryan.org"},{"name":"technicalmachine","email":"team@technical.io"}],"dist":{"shasum":"49c830c3a1e169a0100f44b345e32fa326f2c3ab","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.2.2.tgz","integrity":"sha512-rm0kessGn52YQes5sl7mEy/d9FHnbWbehhmOrx+/9weEdQqsEW7TFut7HvjxsG3avh1kQd5vCtSLk8Swbihudg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEyzIlDW2dilanrLTdwFXVNHmfzsIEyuds2OE1HCVIPQIhAP16FbSi3L8BEkZjk8K43te2G3kabsNhRZ3aTIgh67DO"}]}},"0.2.3":{"name":"accel-mma84","version":"0.2.3","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"tinytap -e 'tessel run {} ${ACCEL_PORT}' test/*.js"},"dependencies":{"sync-queue":"0.0.1"},"hardware":{"./examples":false},"repository":{"type":"git","url":"https://github.com/tessel/accel-mma84"},"author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","devDependencies":{"tinytap":"~0.0.2"},"bugs":{"url":"https://github.com/tessel/accel-mma84/issues"},"homepage":"https://github.com/tessel/accel-mma84","_id":"accel-mma84@0.2.3","dist":{"shasum":"6bbf80f69115251e82d9ca76aaf7e0d69db1d8f3","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.2.3.tgz","integrity":"sha512-qpbgxp6Mk5upwL27I/aImpQLvaf8WjDSPcaZrFvtdxS9o6S4RS/aYQMU0Up47TbyXha0DWXra7fCRsAQ1xcFQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDTrwFSRygI9udCvclY9+QdBAgbp1pK/9aWvuOJnF1hFAiBkJ5H+Ogk4KB94kcrqQv/CUgNbQOMsHM2I/JUyEdCbMQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"technicalmachine","email":"team@technical.io"},"maintainers":[{"name":"tcr","email":"id@timryan.org"},{"name":"technicalmachine","email":"team@technical.io"}]},"0.2.4":{"name":"accel-mma84","version":"0.2.4","description":"Library to run the MMA8452Q accelerometer.","main":"index.js","scripts":{"test":"tinytap -e 'tessel run {} ${ACCEL_PORT}' test/*.js"},"dependencies":{"sync-queue":"0.0.1"},"hardware":{"./examples":false},"repository":{"type":"git","url":"https://github.com/tessel/accel-mma84"},"author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","devDependencies":{"async":"^0.9.0","tinytap":"^0.2.0"},"gitHead":"19c533c434874b57611b51478c65e4996a6455aa","bugs":{"url":"https://github.com/tessel/accel-mma84/issues"},"homepage":"https://github.com/tessel/accel-mma84","_id":"accel-mma84@0.2.4","_shasum":"28989b030ff07b28b385cddf8db69c5563bd7995","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"technicalmachine","email":"team@technical.io"},"maintainers":[{"name":"tcr","email":"id@timryan.org"},{"name":"technicalmachine","email":"team@technical.io"}],"dist":{"shasum":"28989b030ff07b28b385cddf8db69c5563bd7995","tarball":"https://registry.npmjs.org/accel-mma84/-/accel-mma84-0.2.4.tgz","integrity":"sha512-fIP4FJFE9hOu/vK5J+HwoIXBEsHBhnUeksaq3IO+9HCszRC/mA7A2lF3EOGL9s3anhas9nBt1xpONRiQf9p6Qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIASmIF2P4G129+Zqwpaw7oUuyNT0vuMCADmH4m2GOFWIAiAakRrlkDHu+vjzeDLUDMbistA8Wb+0t+xe5kHsadGFNQ=="}]}}},"readme":"#Accelerometer\nDriver for the accel-mma84 Tessel accelerometer module. The hardware documentation for this module can be found [here](https://github.com/tessel/hardware/blob/master/modules-overview.md#accelerometer). \n\nIf you run into any issues you can ask for support on the [Accelerometer Module Forums](http://forums.tessel.io/category/accelerometer).\n\n###Installation\n```sh\nnpm install accel-mma84\n```\n\n###Example\n```js\n/*********************************************\nThis basic accelerometer example logs a stream\nof x, y, and z data from the accelerometer\n*********************************************/\n\nvar tessel = require('tessel');\nvar accel = require('../').use(tessel.port['A']); // Replace '../' with 'accel-mma84' in your own code\n\n// Initialize the accelerometer.\naccel.on('ready', function () {\n    // Stream accelerometer data\n  accel.on('data', function (xyz) {\n    console.log('x:', xyz[0].toFixed(2),\n      'y:', xyz[1].toFixed(2),\n      'z:', xyz[2].toFixed(2));\n  });\n\n});\n\naccel.on('error', function(err){\n  console.log('Error:', err);\n});\n```\n\n###Methods\n\n&#x20;<a href=\"#api-accel-availableOutputRates-Logs-the-available-interrupt-rates-in-Hz\" name=\"api-accel-availableOutputRates-Logs-the-available-interrupt-rates-in-Hz\">#</a> accel<b>.availableOutputRates</b>()  \n Logs the available interrupt rates in Hz.  \n\n&#x20;<a href=\"#api-accel-availableScaleRanges-Logs-the-available-accelerometer-ranges-in-units-of-Gs\" name=\"api-accel-availableScaleRanges-Logs-the-available-accelerometer-ranges-in-units-of-Gs\">#</a> accel<b>.availableScaleRanges</b>()  \nLogs the available accelerometer ranges (in units of Gs).  \n\n&#x20;<a href=\"#api-accel-enableDataInterrupts-trueOrFalse-callback-err-Enables-or-disables-data-interrupts-Set-the-first-param-truthy-to-enable-falsy-to-disable\" name=\"api-accel-enableDataInterrupts-trueOrFalse-callback-err-Enables-or-disables-data-interrupts-Set-the-first-param-truthy-to-enable-falsy-to-disable\">#</a> accel<b>.enableDataInterrupts</b>( trueOrFalse, callback(err) )  \n Enables or disables data interrupts, and thus, `data` events. Set the first param truthy to enable, falsy to disable.  \n\n&#x20;<a href=\"#api-accel-getAcceleration-callback-err-xyz-Gets-the-acceleration-from-the-device-outputs-as-array-x-y-z\" name=\"api-accel-getAcceleration-callback-err-xyz-Gets-the-acceleration-from-the-device-outputs-as-array-x-y-z\">#</a> accel<b>.getAcceleration</b>( callback(err, xyz) )  \n Gets the acceleration from the device, outputs as array [x, y, z].  \n\n&#x20;<a href=\"#api-accel-setOutputRate-rateInHz-callback-err-Sets-the-output-rate-of-the-data-1-56-800-Hz\" name=\"api-accel-setOutputRate-rateInHz-callback-err-Sets-the-output-rate-of-the-data-1-56-800-Hz\">#</a> accel<b>.setOutputRate</b>( rateInHz, callback(err) )  \nSets the output rate of the data (1.56-800 Hz).  \n\n&#x20;<a href=\"#api-accel-setScaleRange-scaleRange-callback-err-Sets-the-accelerometer-to-read-up-to-2-4-or-8-Gs-of-acceleration-smaller-range-better-precision\" name=\"api-accel-setScaleRange-scaleRange-callback-err-Sets-the-accelerometer-to-read-up-to-2-4-or-8-Gs-of-acceleration-smaller-range-better-precision\">#</a> accel<b>.setScaleRange</b>( scaleRange, callback(err) )  \nSets the accelerometer to read up to 2, 4, or 8 Gs of acceleration (smaller range = better precision).  \n\n###Events\n&#x20;<a href=\"#api-accel-on-data-callback-xyz-Emitted-when-data-is-available-xyz-is-an-array-in-the-form-of-x-y-z\" name=\"api-accel-on-data-callback-xyz-Emitted-when-data-is-available-xyz-is-an-array-in-the-form-of-x-y-z\">#</a> accel<b>.on</b>( 'data', callback(xyz) )  \n Emitted when data is available. xyz is an array in the form of [x, y, z].  \n\n&#x20;<a href=\"#api-accel-on-error-callback-err-Emitted-upon-error\" name=\"api-accel-on-error-callback-err-Emitted-upon-error\">#</a> accel<b>.on</b>( 'error', callback(err) )  \n Emitted upon error.  \n\n&#x20;<a href=\"#api-accel-on-ready-callback-Emitted-upon-first-successful-communication-between-the-Tessel-and-the-module\" name=\"api-accel-on-ready-callback-Emitted-upon-first-successful-communication-between-the-Tessel-and-the-module\">#</a> accel<b>.on</b>( 'ready', callback() )  \n Emitted upon first successful communication between the Tessel and the module.  \n\n###Further Examples\n* [Change Rates](https://github.com/tessel/accel-mma84/blob/master/examples/change-rates.js). This more advanced accelerometer example logs a stream of x, y, and z data, then stops the stream, changes the polling rate, and resumes streaming from the accelerometer.\n* [Show Axes](https://github.com/tessel/accel-mma84/blob/master/examples/show-axes.js). Demonstrates axes by turning on a different LED per axis (x, y, z) only when that axis has positive acceleration. Also prints +/- per axis to the console.\n\n###Licensing  \nMIT or Apache 2.0, at your option\n","maintainers":[{"name":"tcr","email":"id@timryan.org"},{"name":"technicalmachine","email":"team@technical.io"},{"name":"tesselproject","email":"team@tessel.io"}],"time":{"modified":"2022-06-13T02:21:02.327Z","created":"2013-09-03T06:00:37.035Z","0.0.1":"2013-09-03T06:00:38.567Z","0.1.0":"2013-09-12T05:02:28.497Z","0.0.2":"2013-12-05T02:33:06.591Z","0.0.3":"2013-12-23T16:27:40.287Z","0.0.4":"2014-03-21T21:25:25.849Z","0.0.5":"2014-03-21T21:27:43.775Z","0.0.55":"2014-04-22T01:08:27.845Z","0.0.6":"2014-05-05T19:00:36.699Z","0.2.0":"2014-05-14T21:08:16.392Z","0.2.1":"2014-05-24T01:56:15.450Z","0.2.2":"2014-05-28T12:29:41.450Z","0.2.3":"2014-05-28T16:04:08.136Z","0.2.4":"2015-02-16T22:49:43.359Z"},"author":{"name":"Tim Cameron Ryan","email":"tim@timryan.org"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/tessel/accel-mma84","repository":{"type":"git","url":"https://github.com/tessel/accel-mma84"},"bugs":{"url":"https://github.com/tessel/accel-mma84/issues"},"users":{"io2work":true}}