Skip to content
A Javascript library that enables communication between BLE devices and a p5 sketch using Web Bluetooth API. https://itpnyu.github.io/p5ble-website.
JavaScript C++ HTML
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead, 4 commits behind ITPNYU:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
workshop
.eslintrc.js
.gitignore
CONTRIBUTING.md
LICENSE
README.md
package-lock.json
package.json
webpack.config.babel.js
webpack.dev.babel.js

README.md

p5.ble.js

MIT License Version

This project is currently in development.

A Javascript library that enables communication between your BLE devices and your p5 sketch. With p5.ble.js, you can request and connect to nearby Bluetooth devices, read/write Bluetooth characteristics, start/stop notifications.

The library is supported by code examples, tutorials that cover many popular Bluetooth LE devices.

p5.ble.js is inspired by p5.serialport, p5.js, Web Bluetooth API, and Processing Serial Library.

This project is a collaboration between Jingwen Zhu, Tom Igoe and Yining Shi.

Usage

Download the minified, or use the online version and add it to the head section of your HTML document:

<script src="p5.ble.min.js" type="text/javascript"></script>

or

<script src="https://unpkg.com/p5ble@0.0.4/dist/p5.ble.js" type="text/javascript"></script>

Browser compatibility

p5.ble.js is based on Web Bluetooth API, checkout Web Bluetooth API's browser compatibility and implementation status.

Resources

Standalone Examples

You can find a collection of standalone examples in this repository: p5-ble-examples

Contributing

See CONTRIBUTING

You can’t perform that action at this time.