{"_id":"ftdi","_rev":"24-b3a453473fb9f6490488fecdc5ef548d","name":"ftdi","description":"FTDI bindings for Node.js","dist-tags":{"latest":"1.2.3"},"versions":{"1.0.0":{"name":"ftdi","version":"1.0.0","description":"FTDI bindings for Node.js","main":"index.js","dependencies":{"bindings":"1.1.0"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","preinstall":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/KABA-CCEAC/node-ftdi.git"},"keywords":["ftdi","usb","driver","device"],"homepage":"https://github.com/KABA-CCEAC/node-ftdi","bugs":{"url":"https://github.com/KABA-CCEAC/node-ftdi/issues"},"license":{"type":"MIT","url":"https://raw.github.com/KABA-CCEAC/node-ftdi/master/licence"},"_id":"ftdi@1.0.0","dist":{"shasum":"9db6a7ca858fc014f0cfcbce14c4d6fcf8268532","tarball":"https://registry.npmjs.org/ftdi/-/ftdi-1.0.0.tgz","integrity":"sha512-7VZWBHjYpUnggZOg2EoJiKiZFevhasY6iEx9DChn4h1KJjhnLy5fy3ZNhcicwS/YHejSpnzMVwj4rcjsOBAbDw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZLl+gIkQfOcoy9HqvHg11qBjAFq+41a5uE06HUyfP0AiEA4NHMuXkLMrpPKZGErePbOSc6IZdEINiYRduMoUZcRmc="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"maintainers":[{"name":"adrai","email":"adriano@raiano.ch"}],"directories":{}},"1.0.1":{"name":"ftdi","version":"1.0.1","description":"FTDI bindings for Node.js","main":"index.js","dependencies":{"bindings":"1.1.0"},"gypfile":true,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","preinstall":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/KABA-CCEAC/node-ftdi.git"},"keywords":["ftdi","usb","driver","device"],"homepage":"https://github.com/KABA-CCEAC/node-ftdi","bugs":{"url":"https://github.com/KABA-CCEAC/node-ftdi/issues"},"license":{"type":"MIT","url":"https://raw.github.com/KABA-CCEAC/node-ftdi/master/licence"},"_id":"ftdi@1.0.1","dist":{"shasum":"0ff8251e9b6ecc3f00528dc7e77efbd43ef4e949","tarball":"https://registry.npmjs.org/ftdi/-/ftdi-1.0.1.tgz","integrity":"sha512-dkQcgh+R6w2S7AZgiW5ZuM13DJGghfOq3JmOv0CZR05lCAnYTzVq4w3UP9KF9X3bi4a3d6zG9BP21XkvSFCFyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBKEM1I3ed0iuLMYhEzcomOFYZ0wblLL8nF3toXUftafAiBtB8XOfNFPCekrkaDgI9UlznbifDfwHduHEYz/6Vpw8Q=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"maintainers":[{"name":"adrai","email":"adriano@raiano.ch"}],"directories":{}},"1.0.2":{"name":"ftdi","version":"1.0.2","description":"FTDI bindings for Node.js","main":"index.js","dependencies":{"bindings":"1.1.0"},"gypfile":true,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","preinstall":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/KABA-CCEAC/node-ftdi.git"},"keywords":["ftdi","usb","driver","device"],"homepage":"https://github.com/KABA-CCEAC/node-ftdi","bugs":{"url":"https://github.com/KABA-CCEAC/node-ftdi/issues"},"license":{"type":"MIT","url":"https://raw.github.com/KABA-CCEAC/node-ftdi/master/licence"},"_id":"ftdi@1.0.2","dist":{"shasum":"ec0c2d3a8240e0f34af5b45e04c06d15eccd464d","tarball":"https://registry.npmjs.org/ftdi/-/ftdi-1.0.2.tgz","integrity":"sha512-2KOZ0o74NgYVF4LHj0yjyE0TH2TOdkoYDEAa7Dxz5LNRGdw6YDhPbVHm/s4FS3D/oZX2oW5mC+93vTtjfawiMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr0SPxntReJI3VYyJ9z/LOdaqU0UX9HuxEGn6BbdsJRQIgHq8Ecr3Xe/zztdk2cd69uMDTmnvD3KEpIBfwzmg1yuw="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"maintainers":[{"name":"adrai","email":"adriano@raiano.ch"}],"directories":{}},"1.0.3":{"name":"ftdi","version":"1.0.3","description":"FTDI bindings for Node.js","main":"index.js","dependencies":{"bindings":"1.1.0"},"gypfile":true,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","preinstall":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/KABA-CCEAC/node-ftdi.git"},"keywords":["ftdi","usb","driver","device"],"homepage":"https://github.com/KABA-CCEAC/node-ftdi","bugs":{"url":"https://github.com/KABA-CCEAC/node-ftdi/issues"},"license":{"type":"MIT","url":"https://raw.github.com/KABA-CCEAC/node-ftdi/master/licence"},"_id":"ftdi@1.0.3","dist":{"shasum":"1c963d69a522d280731fac8e7869daf4eac91e58","tarball":"https://registry.npmjs.org/ftdi/-/ftdi-1.0.3.tgz","integrity":"sha512-gmK5a6HMJwEZ6BzIJ9xEfl2t+uc38w12+bYPm50IjtcYQDAV7DSElmlYK1UBMlZenWmPg6/tGfeD/uEJDMJiYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFs/6ooHhVv61K+QV162IB6Zs0PqG0KozTgwdTXmU3wAIhAO2TBNjqexkZUzT8cWNGAPi5zqch7CpuHhI/sVHsaXMk"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"maintainers":[{"name":"adrai","email":"adriano@raiano.ch"}],"directories":{}},"1.1.0":{"name":"ftdi","version":"1.1.0","description":"FTDI bindings for Node.js","main":"index.js","dependencies":{"bindings":"1.1.0"},"gypfile":true,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","preinstall":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/KABA-CCEAC/node-ftdi.git"},"keywords":["ftdi","usb","driver","device"],"homepage":"https://github.com/KABA-CCEAC/node-ftdi","bugs":{"url":"https://github.com/KABA-CCEAC/node-ftdi/issues"},"license":{"type":"MIT","url":"https://raw.github.com/KABA-CCEAC/node-ftdi/master/licence"},"gitHead":"460b1fa8477efc510f2c8316c2f99cfe082d6ae4","_id":"ftdi@1.1.0","_shasum":"456560ad8c4d30530431604dd40413c14537363d","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"maintainers":[{"name":"adrai","email":"adriano@raiano.ch"}],"dist":{"shasum":"456560ad8c4d30530431604dd40413c14537363d","tarball":"https://registry.npmjs.org/ftdi/-/ftdi-1.1.0.tgz","integrity":"sha512-XT7/DlqzZWLylx3ZLs4cIX0KVLBRFDsRj5D+2vx3LeazsF3dLmxT56B+aa2mNFm4KXaBlgT/TOYg0yHARnTMGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCo8EGIe+h89ZtQV3FkIFHdt1kNQaAQrNCszSeMQjzlcAIgEImeVhQp1cviyP+/z6Ojr7QkuWySmTN/IJrrHQQe4E4="}]},"directories":{}},"1.2.0":{"name":"ftdi","version":"1.2.0","description":"FTDI bindings for Node.js","main":"index.js","dependencies":{"bindings":"^1.2.1","nan":"^2.2.0"},"gypfile":true,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","postinstall":"node-gyp rebuild","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/thomaschaaf/node-ftdi.git"},"keywords":["ftdi","usb","driver","device"],"homepage":"https://github.com/thomaschaaf/node-ftdi","bugs":{"url":"https://github.com/thomaschaaf/node-ftdi/issues"},"license":"MIT","gitHead":"2fc8b02140d328e7bd17faa3dbb84f33c59a1373","_id":"ftdi@1.2.0","_shasum":"21d08ba836d4a6a52db63962bdda695ef27ba7a5","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.1","_npmUser":{"name":"thomaschaaf","email":"schaaf@komola.de"},"dist":{"shasum":"21d08ba836d4a6a52db63962bdda695ef27ba7a5","tarball":"https://registry.npmjs.org/ftdi/-/ftdi-1.2.0.tgz","integrity":"sha512-Bn+HYxzDvwb4YDUjhY4mArqNaTAzJuzh2L4JNZEs7azWyIGtC/kI90ZrTcRioLT2DggJ0wqg6sDlyWopLKPFDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYotfn91C4X1pT8+dqpbfOk0tgNGiJ3FO94xs3vVDNCAiEAi6WTv9PV+iTPJl0fJkVjWsecRfxzUe+aXOj52qw3Vec="}]},"maintainers":[{"name":"adrai","email":"adriano@raiano.ch"},{"name":"thomaschaaf","email":"schaaf@komola.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ftdi-1.2.0.tgz_1459794068960_0.13316652667708695"},"directories":{}},"1.2.1":{"name":"ftdi","version":"1.2.1","description":"FTDI bindings for Node.js","main":"index.js","dependencies":{"bindings":"^1.2.1","nan":"^2.4.0"},"gypfile":true,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","postinstall":"node-gyp rebuild","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/thomaschaaf/node-ftdi.git"},"keywords":["ftdi","usb","driver","device"],"homepage":"https://github.com/thomaschaaf/node-ftdi","bugs":{"url":"https://github.com/thomaschaaf/node-ftdi/issues"},"license":"MIT","gitHead":"14d861b07022e73ecc072de78107b1ad52325740","_id":"ftdi@1.2.1","_shasum":"58b28400d6ec78ebbb7a619a3788ddfda1c46a98","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"mmckegg","email":"matt@wetsand.co.nz"},"dist":{"shasum":"58b28400d6ec78ebbb7a619a3788ddfda1c46a98","tarball":"https://registry.npmjs.org/ftdi/-/ftdi-1.2.1.tgz","integrity":"sha512-Yht8BvQFb/bCQvq9u5xgAFA6lCQBRmFy3P7uKBD7kjJwZNh/reLlFjwekh9vVD0LunXfkrBNQFpyH/73j8FiJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmYI6UuhloQG7jUCSF3WNIOjoLI3/mQXGh4aBXj2dCQAiBzEhqWYIe8MtF2p5c2CII10cKX612nuXK3lb1b92GaJw=="}]},"maintainers":[{"name":"adrai","email":"adriano@raiano.ch"},{"name":"mmckegg","email":"matt@wetsand.co.nz"},{"name":"thomaschaaf","email":"schaaf@komola.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ftdi-1.2.1.tgz_1478263496159_0.5991906484123319"},"directories":{}},"1.2.2":{"name":"ftdi","version":"1.2.2","description":"FTDI bindings for Node.js","main":"index.js","dependencies":{"bindings":"^1.2.1","nan":"^2.4.0"},"gypfile":true,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","postinstall":"node-gyp rebuild","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/thomaschaaf/node-ftdi.git"},"keywords":["ftdi","usb","driver","device"],"homepage":"https://github.com/thomaschaaf/node-ftdi","bugs":{"url":"https://github.com/thomaschaaf/node-ftdi/issues"},"license":"MIT","gitHead":"af8f57ff5e952a1a3e14fbd3b61c23465c8ad7f0","_id":"ftdi@1.2.2","_nodeVersion":"12.7.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-Hu8qxB8WDsUJrpGvyVqBT6HewYEcDhqzrpRmd7YlCbshywN071LAxrfNQvRzUXV3qYgimiwS2gclpNJvxoxrKQ==","shasum":"c43460d2934d7734d8c166711a15ff983d113761","tarball":"https://registry.npmjs.org/ftdi/-/ftdi-1.2.2.tgz","fileCount":14,"unpackedSize":130697,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVqJxCRA9TVsSAnZWagAAAJAQAJHJJ1EJSPcaUnvC9vl5\nVSchCWmBraBvBg0m1Yo4yT2N0LtAkREU9aTfqfx+KvujglywbSOxAYTQHI7X\nZJPf0T8E1hbBHpdwnoNJCkpgtPw8X7zH8rQZOfjCk6mTepfCAcKqQWm/HNaU\nEdM/RMNmWbev2iIi6guHowyuzxZS2Rr4GSXNdLIZYllm6W4Bpc3oPSa3pjhO\nXU8oo8uuzPJDLR0dq1zqr4OF9FOVsHi+xyf0JfQ4jtlb+yf4XOSoNuIiT3ln\n7XvixLYQdhBejlKI+mIu+MjMz8+l7ynfloE6jYnDKOw1TUhaWNzlHmwiTHv6\nHryP3f/FrTxkwluhW3Iqxp26tCtYcBXn6utSESA7V+LTZ0TVf5l82AqqoT1d\ngSx0V+sKvrr35hFI/xNWOWY+UOhlwVfrMN9GNx/DcjdxfFCPMOSg8fE4Ggvy\nNb2YF6CCf8oYynpeSYaIzoiXLneRmmwJkQ6eGwGOZpz0QyB8qYqONeoOcEFO\nesITBpXo8m4TDjsot7KH1d3sMvFdZNfGBH6kVw1wVchqWCIOzEmAIGAluDVT\nMB6VrwjZzHOTSA8AaGnY3Y0CqIHW34USehSD95qin9aA9NuFBZESvAguDgyd\ngIC/QOQ3n/Qp+mzr68mfCmmkmz4Ec3F/EIA4brl3+gPCmBSq85n4wqvs6Jnw\nqJEy\r\n=k2CM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBx9/2kCOcQMrwamkiUUB7fUoSDbLjGAYULI2dP6hbl4AiEAi3SbfARVxIdW0iPofLVQWvs/EsLA0MR31pKnnTgQHlA="}]},"maintainers":[{"email":"adriano@raiano.ch","name":"adrai"},{"email":"matt@wetsand.co.nz","name":"mmckegg"},{"email":"schaaf@komola.de","name":"thomaschaaf"}],"_npmUser":{"name":"thomaschaaf","email":"schaaf@komola.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ftdi_1.2.2_1565958768386_0.07544912911855439"},"_hasShrinkwrap":false},"1.2.3":{"name":"ftdi","version":"1.2.3","description":"FTDI bindings for Node.js","main":"index.js","dependencies":{"bindings":"^1.2.1","nan":"^2.4.0"},"gypfile":true,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","postinstall":"node-gyp rebuild","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/thomaschaaf/node-ftdi.git"},"keywords":["ftdi","usb","driver","device"],"homepage":"https://github.com/thomaschaaf/node-ftdi","bugs":{"url":"https://github.com/thomaschaaf/node-ftdi/issues"},"license":"MIT","gitHead":"db26292d4e2ef5c3625116cf282e25866f17b178","_id":"ftdi@1.2.3","_nodeVersion":"12.7.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-7d5C1gk4KEkfvqWzpkpQ5QrK7lZfN4yFqmmbdp2N2T40Cf0pZ4Dx1KbFWN/oMXZcPAkzaN6Q/Y6Pbbvc66bHEQ==","shasum":"4f907521528af2e3363d323aa4ada437e08f5794","tarball":"https://registry.npmjs.org/ftdi/-/ftdi-1.2.3.tgz","fileCount":14,"unpackedSize":130749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXGZzCRA9TVsSAnZWagAAmwwP/jMmfCyXobWl6Bf0qjbc\n8DjFgcP1v22z4AQSNLvv7e4y916z0alrTchFu+msDEh4P/glGWn92xI0YYVT\nODPutRPRajoSz4BmwUbnODOX93Khj0QC8OKAbiU0W/M7cIO6beQH4pU9KrhX\nqJl/Lf5fw2Dbl3Rso+Fiol15SD8PrPrYllnAGHlASAoix1tpwjauB7+JMBUg\nnC7ZTGbX5PZ0LA3SItCF/Ddb1W1RkcW04KleVDAf3LPzEDBwIWOSuh8SA96w\ntLJb3eFRjXGSl5inytwzGj/DaVrne3kkxSbtgstaxs085cF+VHtfPUimyvaK\n+DA2WJuoJk22iqZeAbIW55UeJgBWAmJeLozTVfLqiBlsnHbD6U44On2IGRuL\nGDJCUjAHC6pfTpLn1Ep3sn6m8ZQsN2Z0QlRi7HZUsSv2GwmGU6Kh6UkQVFvV\nlZyV/NklW9y8z8B1xSfowfClCdHo54GJW91HJYPEHkBDDFbiBY85wqlol8SE\ngRluG1xIvyr6zM0shCCuNtTakf6MriITeBCuQ5sr6FN0s7gmnv+pfHPZsfe8\nBdTv4uS4J8yu/Df4l+Vm44iwjZbIh27ItvVYTb2rA7VaiF1tnOhUCOVF0/1d\ndX7PLzjYy3uDBfEn7GsbIZqRA6tqRazJ/HJfAVt0pm6NZwFJHPZV6VPXW9m4\n+cSO\r\n=p6zE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVHaFYuoKR5N+p/RpdiXgUS67inO1ombg1LfUiw5Nl/gIhAMJyIHR9xnswe4GJaLb1qtS5RivqiaVKY24gXP5Nac5S"}]},"maintainers":[{"email":"adriano@raiano.ch","name":"adrai"},{"email":"matt@wetsand.co.nz","name":"mmckegg"},{"email":"schaaf@komola.de","name":"thomaschaaf"}],"_npmUser":{"name":"thomaschaaf","email":"schaaf@komola.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ftdi_1.2.3_1566336626701_0.4339299395782463"},"_hasShrinkwrap":false}},"readme":"
\n eeeee eeeee eeeee eeee e eeeee\n 8 8 8 88 8 8 8 8 8 \"\n 8e 8 8 8 8e 8 8eee 8e 8eeee\n 88 8 8 8 88 8 88 e 88 88\n 88 8 8eee8 88ee8 88ee 88 8ee88 8ee88\n\n eeee eeeee eeeee e\n 8 8 8 8 8\n 8eee 8e 8e 8 8e\n 88 88 88 8 88\n 88 88 88ee8 88\n\n\n[![npm](https://img.shields.io/npm/v/ftdi.svg)](https://npmjs.org/package/ftdi)\n\n# Prerequisites:\n\n**Make sure you installed the ftdi driver: [ftdi](http://www.ftdichip.com/Drivers/D2XX.htm)**\n\nIf you're are using a Linux distribution or Mac OS X you can run the **install.sh** script file to install the ftdi driver...\nFor Windows the libs are shipped with this module.\n\n# Installation\n\n npm install ftdi\n\nThis assumes you have everything on your system necessary to compile ANY native module for Node.js. This may not be the case, though, so please ensure the following are true for your system before filing an issue about \"Does not install\". For all operatings systems, please ensure you have Python 2.x installed AND not 3.0, [node-gyp](https://github.com/TooTallNate/node-gyp) (what we use to compile) requires Python 2.x.\n\n### Windows:\n\nEnsure you have Visual Studio 2010 installed. If you have any version OTHER THAN VS 2010, please read this: https://github.com/TooTallNate/node-gyp/issues/44\n\n### Mac OS X:\n\nEnsure that you have at a minimum the xCode Command Line Tools installed appropriate for your system configuration. If you recently upgrade OS, it probably removed your installation of Command Line Tools, please verify before submitting a ticket.\n\nVerify that it is installed by running ```xcode-select --install```\n\n### Linux:\n\nYou know what you need for you system, basically your appropriate analog of build-essential. Keep rocking!\n\nIf you the vendorId and productId are both zero you have to unload the driver before using your node app like this:\n```\nrmmod ftdi_sio\nrmmod usbserial\n```\n\n# Usage\n\n## Listing or finding devices\n\n```nodejs\nvar ftdi = require('ftdi');\n\nftdi.find(0x27f4, 0x0203, function(err, devices) {}); // returns all ftdi devices with\n // matching vendor and product id\n```\n\n## Create an FtdiDevice\n\n```nodejs\nvar ftdi = require('ftdi');\n\nvar device = new ftdi.FtdiDevice({\n locationId: 0,\n serialNumber: 0\n});\n\n// or\nvar device = new ftdi.FtdiDevice(0); // index in list function\n```\n\n## All together\n\n```nodejs\nvar ftdi = require('ftdi');\n\nftdi.find(0x27f4, 0x0203, function(err, devices) {\n var device = new ftdi.FtdiDevice(devices[0]);\n\n device.on('error', function(err) {\n });\n\n device.open({\n baudrate: 115200,\n databits: 8,\n stopbits: 1,\n parity: 'none',\n flowcontrol: 'none', // can be 'none', 'rts_cts', 'dtr_dsr', 'xon_xoff'\n // bitmode: 'cbus', // for bit bang\n // bitmask: 0xff // for bit bang\n },\n function(err) {\n\n device.on('data', function(data) {\n\n });\n\n device.write([0x01, 0x02, 0x03, 0x04, 0x05], function(err) {\n\n });\n\n });\n\n});\n```\n\n### Bit Bang infos\nbitmask: Is always a number (one byte).\n\nbitmode: Can be directly a number (one byte) like 0x20 or a string like 'cbus'.\n\nmapping:\n\n```nodejs\nvar bitmodes = {\n 'reset' : 0x00,\n 'async' : 0x01,\n 'mpsse' : 0x02,\n 'sync' : 0x04,\n 'mcu' : 0x0B,\n 'fast' : 0x10,\n 'cbus' : 0x20,\n 'single': 0x40\n};\n\n/**\n * 0x00 = Reset\n * 0x01 = Asynchronous Bit Bang\n * 0x02 = MPSSE (FT2232, FT2232H, FT4232H and FT232H devices only)\n * 0x04 = Synchronous Bit Bang (FT232R, FT245R, FT2232, FT2232H, FT4232H and FT232H devices only)\n * 0x08 = MCU Host Bus Emulation Mode (FT2232, FT2232H, FT4232H and FT232H devices only)\n * 0x10 = Fast Opto-Isolated Serial Mode (FT2232, FT2232H, FT4232H and FT232H devices only)\n * 0x20 = CBUS Bit Bang Mode (FT232R and FT232H devices only)\n * 0x40 = Single Channel Synchronous 245 FIFO Mode (FT2232H and FT232H devices only)\n */\n```\n\n# Troubleshoot\n\n### Windows\n\n### Mac OS X\n\nError message:\nCan't open ftdi device: FT_DEVICE_NOT_OPENED\n\nTry to unload the Apple FTDI Driver by running the following command:\n\n```sudo kextunload -b com.apple.driver.AppleUSBFTDI```\n\n### Linux\n\n# Release Notes\n\n## v1.2.2\n\n- Fix wrong time.h header\n\n## v1.2.0\n\n- Add support for node v4, v5\n\n## v1.1.0\n\n- added bit bang support\n\n## v1.0.3\n\n- revert \"ready for node >= 0.11.4\"\n\n## v1.0.2\n\n- fix allocation/deallocation mismatch\n\n## v1.0.1\n\n- ready for node >= 0.11.4\n\n## v1.0.0\n\n- first release\n\n\n# License\n\nCopyright (c) 2014 Kaba AG\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","maintainers":[{"email":"adriano@raiano.ch","name":"adrai"},{"email":"matt@wetsand.co.nz","name":"mmckegg"},{"email":"schaaf@komola.de","name":"thomaschaaf"}],"time":{"modified":"2022-06-18T04:02:28.842Z","created":"2013-04-25T05:45:47.751Z","1.0.0":"2013-04-25T05:45:51.074Z","1.0.1":"2013-07-23T08:25:15.836Z","1.0.2":"2013-07-29T06:18:47.861Z","1.0.3":"2013-08-07T10:37:43.795Z","1.1.0":"2014-08-02T09:24:24.804Z","1.2.0":"2016-04-04T18:21:11.536Z","1.2.1":"2016-11-04T12:44:56.373Z","1.2.2":"2019-08-16T12:32:48.576Z","1.2.3":"2019-08-20T21:30:26.823Z"},"repository":{"type":"git","url":"git://github.com/thomaschaaf/node-ftdi.git"},"homepage":"https://github.com/thomaschaaf/node-ftdi","keywords":["ftdi","usb","driver","device"],"bugs":{"url":"https://github.com/thomaschaaf/node-ftdi/issues"},"license":"MIT","readmeFilename":"README.md","users":{"adrai":true,"darrylhodgins":true,"joshperry":true}}