p5.j5
The full Johnny-Five nodebots library for p5.js!
Works directly in a web page via webSerial or webUSB. No servers required.
getting started
include p5 and p5.j5 in your web page:
add some javascript:
let sensorVal = 0; { ;} { const sensor = 'A0'; sensor; ;} { ; ;}
supported hardware
Currently p5.j5 supports any arduino with the firmata sketch.
If using webUSB, you'll need the webUSB firmata sketch loaded onto your board.
running demos
from this directory run:
npm install
npm run demos
- point browser to http://localhost:5000/demos
running on the p5 web editor
Just plug in a microcontroller with firmata on it and go here:
https://editor.p5js.org/monteslu/sketches/QbhToqDil
Bonus features
Johnny-Five related libraries bundled in:
-
p5.j5.nodeLed
-
p5.j5.nodePixel
-
p5.j5.oledJS ( including p5.j5.oledJS.oledFont5x7 )
TODO
Currently webUSB and webSerial are working great, but would be nice to have web bluetooth support via ble-io