Bluetooth Music Controller

In this video I show you how to set up Puck.js to control your mobile phone's music playback by pressing it in different ways.

It uses Puck.js's Bluetooth LE HID capability.

You could extend this relatively easily - for instance:


The code used in the video is:

var controls = require("ble_hid_controls");
NRF.setServices(undefined, { hid : });

setWatch(function(e) {
  var len = e.time - e.lastTime;
  if (len > 0.3) {;
  } else {
}, BTN, { edge:"falling",repeat:true,debounce:50});

This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.