/ichigo_write.js Secret
Created
June 24, 2016 14:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var serialport = require('serialport'); | |
// シリアルポートの設定 | |
var port = new serialport.SerialPort( | |
'COM31', { // COMポート | |
baudrate: 115200, // ボーレート | |
} | |
); | |
port.on('open', function () { | |
// コマンド送信(改行コード「\r\n」を付加) | |
port.write("LED1\r\n"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment