p5bots:与p5.js整合微控制器应用

欢迎使用p5bots!这是如何运作的?p5bots是一个在浏览器中运行的库,促进与微控制器的通信。该库已经在Arduino Unos上进行了测试,但可以在任何运行Firmata的设备上使用。串行API不依赖于Firmata。为了实现这一点,p5bots使用socket.io库和node.js在两个设备之间发送消息,以每种设备可以理解的语言进行通信。这意味着您可以通过点击草图来点亮LED,或者使用温度数据来驱动草图,甚至更多。p5bots包含两组文件:客户端文件p5bots.js,与p5.js和您的草图一起包含在index.html中;以及服务器文件p5bots-serve。
js一起使用
p5bots:将您的微控制器与p5.js一起使用 预估大小:124个文件
file
index.html 393B
file
PingFirmata.ino 22KB
file
index.html 507B
file
05_Knock.html 442B
file
05_Knock.jpg 209KB
file
03_FlexSensor.jpg 255KB
file
03_FlexSensor.html 452B
file
00_LedBlink.jpg 252KB
file
00_LedBlink.html 447B
file
02_Potentiometer.html 458B
file
01_DigitalRead.jpg 265KB
file
01_DigitalRead.html 454B
file
02_Potentiometer.jpg 276KB
file
04_Photocell.html 450B
file
04_Photocell.jpg 243KB
file
mocha.css 4KB
file
test-minified.html 2KB
file
test.html 2KB
file
.editorconfig 328B
file
.gitignore 45B
zip 文件大小:4.89MB