Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{role: 'togglefullscreen'}
]}, {
label: "Edit",
submenu: [
{ label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
{ label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
{ label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" }
]}
];
Menu.setApplicationMenu(Menu.buildFromTemplate(template));
});
let serialserver = require('p5.serialserver');
serialserver.start(8081);
console.log("p5.serialserver is running");
/*
let sp = require('serialport');
sp.list(function(err, ports) {
console.log(ports);
});
*/