reflecta_hart1

0.1.0 • Public • Published

reflecta_hart1

reflecta_hart1 binds the function setFrameRate to the hart1 interface. This is the Arduino library that enables heartbeats with data coming from the Arduino to be frame rate controlled by the receiver.

Stability: Medium

Calling reflecta_hart1 from NodeJS

Simply load reflecta using

npm install reflecta
var reflecta = require('reflecta');

reflecta.detect(function(error, boards, ports) {

    board = boards[0];

    if (board.hart1) {
        board.hart1.setFrameRate(20);
    }
});

Reflecta will use npm to install and load this library automatically if the Arduino exposes the 'hart1' interface.

A simple but complete example can be found in the node-reflecta project.

Release History

  • 0.1.0: Initial release

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i reflecta_hart1

      Weekly Downloads

      2

      Version

      0.1.0

      License

      none

      Last publish

      Collaborators

      • jaybeavers