Control a Bus Pirate with Node!
Don't know what that is? Check it out
I'm testing this with the v3.6 and the v4 and Node 7.x
BusPirate.start()
BusPirate.reset()
'ready' event -- BusPirate.on('ready', () => {})
BusPirate.i2cInit()
BusPirate.i2cConfig({
power: true,
pullups: true,
aux: true,
cs: true
})
BusPirate.i2cWrite(address, bytesArray)
BusPirate.uartInit();
BusPirate.uartSetSpeed(9600);
BusPirate.uartConfig({
pinOutput: "HiZ",
databitsParity: "8/N",
stopBits: 1,
polarity: "idleHigh"
});
BusPirate.uartSetPeripherals({
power: true,
pullups: false,
aux: false,
cs: false
});
BusPirate.uartSetRxEcho(true);
BusPirate.uartWrite(["abcd"]);
Thanks to node-serialport for making this all possible <3
- @nodebotanist
- @hannes-hochreiner