Node.js bindings for Bus Pirate
The code is fairly untested, and may break your kit. However, these modes have been mostly implemented, and partially tested:
node-buspirate is in the npm registry!
npm install node-buspirate
Or you could always clone / fork this repo:
git clone https://github.com/rmhsilva/node-buspirate.git cd node-buspirate && npm install
Check the examples folder for examples of how it can be used.
#!/usr/bin/env nodevar BusPirate = ;var pirate = '/dev/bus_pirate';pirate;pirateuart;pirateuart;
The plan is to add other Bus Pirate modes (I2C...) which will be used similarly.
The BusPirate object is an eventEmitter built on top of a node Serialport. It gets the hardware into raw bitbang mode, then just sends and receives raw data from the hardware, and lets other modules handle the specifics of each mode.