ramspeed Posted November 19, 2015 Share Posted November 19, 2015 Hey, does anyone know if there is an API or some kind of interface I can hook into Phaser to communicate with hardware via a serial port? Thanks and I love this framework. Adrian Link to comment Share on other sites More sharing options...
drhayes Posted November 19, 2015 Share Posted November 19, 2015 Super doubtful. The browser would have to talk to the serial port and I think there are too many security considerations to make that feasible. That said, there are node libraries for talking over serial ports and programming robots and things. Link to comment Share on other sites More sharing options...
ramspeed Posted November 19, 2015 Author Share Posted November 19, 2015 What if my game was running as a desktop windows application? Link to comment Share on other sites More sharing options...
drhayes Posted November 20, 2015 Share Posted November 20, 2015 Why didn't you say so before! Using Electron or NW.js or something? https://github.com/voodootikigod/node-serialport Had lots of success with this for programming drones and things. Link to comment Share on other sites More sharing options...
Recommended Posts