How to use the p5.serialserver.start function in p5

To help you get started, we’ve selected a few p5 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github p5-serial / p5.serialcontrol / server / main.js View on Github external
{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);
  });
*/

p5

[![npm version](https://badge.fury.io/js/p5.svg)](https://www.npmjs.com/package/p5)

LGPL-2.1
Latest version published 24 days ago

Package Health Score

95 / 100
Full package analysis