Import library

Just insert a sigle script after 2 dependent scripts p5.js and p5.sound.min.js in your <head>.

<script src=""></script>
<script src=""></script>
<!-- INSERT HERE -->
<script src=""></script>

We can also use the non-uglified code.

<script src=""></script>

How to import into p5.js Web Editor

  1. Click > button icon to open Sketch files.
  2. Select index.html to insert p5.toio library as the method above.
  3. Then, you can go back and start programming by selecting index.js. Go on to the next page Basic Usage.

p5.js Web Editor support Web Bluetooth but OpenProcessing unfortunately does not support it so that this library also does not work😭.