0.1.0 • Published 11 years ago

reflecta_hart1 v0.1.0

Weekly downloads
6
License
-
Repository
github
Last release
11 years ago

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