Skip to content

Instantly share code, notes, and snippets.

@phillipsnick
phillipsnick / down.js
Created April 4, 2018 11:47
Pure Theatre RS232
var SerialPort = require('serialport');
var port = new SerialPort('/dev/tty.usbserial', {
baudRate: 9600
});
port.on('open', function() {
console.log('open')
port.write(new Buffer('#DDN\r'), (err, res) => {
if (err) {
return console.log('err', err)