Skip to content

A Javascript library that enables communication between BLE devices and a p5 sketch using Web Bluetooth API. https://yining1023.github.io/p5ble-website.

License

Notifications You must be signed in to change notification settings

yining1023/p5.ble.js

Repository files navigation

MIT License Version

This repo is deprecated, it's moved to ITPNYU/p5.ble.js

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. .

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@latest/dist/p5.ble.min.js" type="text/javascript"></script>

Resources

Standalone Examples

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

Contributing

See CONTRIBUTING

About

A Javascript library that enables communication between BLE devices and a p5 sketch using Web Bluetooth API. https://yining1023.github.io/p5ble-website.

Resources

License

Stars

Watchers

Forks

Packages

No packages published