node-serialport

Serial port not working?

烂漫一生 提交于 2019-11-26 12:19:46
问题 I made a program that sends out data to my arduino which detects what was sent and then turns on the correct pin according to what key is pressed. When using the arduino software from my windows computer the arduino sketch works fine, I can make each pin turn on and off by sending either W A S Or D. When sending via node the RX light on the arduino flashes but nothing else happens. Can anyone help? Node.js program: var httpServer = require(\'http\').createServer(function(req, response){ /*