UNPKG

johnny-five

Version:

Firmata based Arduino Programming Framework.

9 lines (5 loc) 275 B
// Test with the epic VirtualSerialPortApp - http://code.google.com/p/macosxvirtualserialport/ var SerialPort = require("../serialport").SerialPort; var serial_port = new SerialPort("/dev/master", {baudrate: 9600}); serial_port.write("It worked!\r"); serial_port.close();