p5.serialport:用于p5.js的串行端口API和服务器-源码

上传者: 42097369 | 上传时间: 2021-02-02 12:07:36 | 文件大小: 6.07MB | 文件类型: ZIP
p5。串口 一个库,可在您的p5草图与Arduino(或另一个启用串行的设备)之间进行通信。 它有什么作用? p5.serialport或多或少地克隆了 。 由于浏览器中JavaScript无法与串行端口直接交互,因此该库可以解决此问题。 p5.serialport有两种形式: 一个是一个简单的应用程序,对所有技能水平都有好处,并且最易于使用; 第二个是基于Node.js的WebSocket服务器,这是针对更熟练的高级用户或需要大量自定义的用户的。 p5.serial应用 开始下载并运行。 此应用程序在MacOS和Windows的GUI应用程序中结合了p5.serialserver。 启动应用程序后,请在浏览器中加载之一,以查看其运行情况。 您可能必须将示例中的串行端口名称更改为Arduino使用的端口名称。 p5.serial Node.js 使用方法: 将Arduino或其他串行设备连接到计算机。 克隆或下载此存储库,并使用以下命令安装依赖项: npm install并使用以下命令启动服务器: node startserver.js 或者,您可以使用sudo npm

文件下载

资源详情

[{"title":"( 57 个子文件 6.07MB ) p5.serialport:用于p5.js的串行端口API和服务器-源码","children":[{"title":"p5.serialport-master","children":[{"title":".gitignore <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 6.77KB </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"readCount","children":[{"title":"libraries","children":[{"title":"p5.serialport.js <span style='color:#111;'> 14.24KB </span>","children":null,"spread":false},{"title":"p5.sound.js <span style='color:#111;'> 239.11KB </span>","children":null,"spread":false},{"title":"p5.dom.js <span style='color:#111;'> 48.61KB </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 3.61MB </span>","children":null,"spread":false}],"spread":true},{"title":"sketch.js <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"write","children":[{"title":"write.ino <span style='color:#111;'> 135B </span>","children":null,"spread":false}],"spread":true},{"title":"index.html <span style='color:#111;'> 581B </span>","children":null,"spread":false}],"spread":true},{"title":"echo2","children":[{"title":"libraries","children":[{"title":"p5.serialport.js <span style='color:#111;'> 14.24KB </span>","children":null,"spread":false},{"title":"p5.sound.js <span style='color:#111;'> 239.11KB </span>","children":null,"spread":false},{"title":"p5.dom.js <span style='color:#111;'> 48.61KB </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 3.61MB </span>","children":null,"spread":false}],"spread":true},{"title":"sketch.js <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 577B </span>","children":null,"spread":false}],"spread":true},{"title":"basics","children":[{"title":"sketch.js <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 3.61MB </span>","children":null,"spread":false}],"spread":true},{"title":"makePortMenu","children":[{"title":"libraries","children":[{"title":"p5.serialport.js <span style='color:#111;'> 12.51KB </span>","children":null,"spread":false},{"title":"p5.dom.js <span style='color:#111;'> 48.61KB </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 3.61MB </span>","children":null,"spread":false}],"spread":true},{"title":"sketch.js <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 584B </span>","children":null,"spread":false}],"spread":true},{"title":"writeExample","children":[{"title":"libraries","children":[{"title":"p5.serialport.js <span style='color:#111;'> 21.96KB </span>","children":null,"spread":false},{"title":"p5.sound.js <span style='color:#111;'> 311.98KB </span>","children":null,"spread":false},{"title":"p5.dom.js <span style='color:#111;'> 66.91KB </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 919.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"PhysicalPixel","children":[{"title":"PhysicalPixel.ino <span style='color:#111;'> 5.36KB </span>","children":null,"spread":false}],"spread":true},{"title":"sketch.js <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 3.61MB </span>","children":null,"spread":false}],"spread":true},{"title":"twoArduinosArray","children":[{"title":"sketch.js <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 3.61MB </span>","children":null,"spread":false}],"spread":true},{"title":"readAndAnimate","children":[{"title":"sketch.js <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 3.61MB </span>","children":null,"spread":false}],"spread":true},{"title":"twoArduinos","children":[{"title":"sketch.js <span style='color:#111;'> 4.57KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 3.61MB </span>","children":null,"spread":false}],"spread":true},{"title":"basics-cdn","children":[{"title":"sketch.js <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 431B </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 3.61MB </span>","children":null,"spread":false}],"spread":true},{"title":"echo","children":[{"title":"echo.ino","children":[{"title":"echo.ino.ino <span style='color:#111;'> 135B </span>","children":null,"spread":false}],"spread":false},{"title":"sketch.js <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"p5.js <span style='color:#111;'> 3.61MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"package.json <span style='color:#111;'> 738B </span>","children":null,"spread":false},{"title":"yuidoc.json <span style='color:#111;'> 135B </span>","children":null,"spread":false},{"title":"startserver.js <span style='color:#111;'> 354B </span>","children":null,"spread":false},{"title":"p5.serialserver.js <span style='color:#111;'> 8.27KB </span>","children":null,"spread":false},{"title":"LICENSE.txt <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"jsdoc.conf.json <span style='color:#111;'> 528B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"p5.serialport.js <span style='color:#111;'> 22.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"SerialPort.js <span style='color:#111;'> 6.09KB </span>","children":null,"spread":false},{"title":"Client.js <span style='color:#111;'> 3.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"package-lock.json <span style='color:#111;'> 29.60KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明