How to use the bindings.FtdiDevice function in bindings

To help you get started, we’ve selected a few bindings examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thomaschaaf / node-ftdi / ftdi.js View on Github external
var FTDIDriver = require('bindings')('ftdi.node').FtdiDriver;
var FTDIDevice = require('bindings')('ftdi.node').FtdiDevice;

var ftdiBinding;
var sys = require('sys'),
events = require('events');

// var deviceSettings = {
//   vid: 0x27f4,
//   pid: 0x0203
// };
var deviceSettings = {
  vid: 0x18d9,
  pid: 0x01a0
};

var connectionSettings =
{