Going for some cheeky extra credit and trying to control the arduino ports 3-10 using nodeJS and I have that working just fine HOWEVER I can only have 1 serial connection open at once so what I wanted to know what how can I construct and define the serial connection in a single file and use that in my command files ect?
I will send some screenshots so it makes more sense
