0.1.4 • Published 10 years ago

cylon-beaglebone-stub v0.1.4

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

Cylon.js Beaglebone stub for testing

NPM   Build Status   release notes

This repository conains what looks like a real beaglebone, but is stubbed out so robots can be built and tested without being connected to a beaglebone.

For more information about Cylon, check out the repo at https://github.com/hybridgroup/cylon

Getting Started

Install the module with: npm install cylon-beaglebone-stub

Examples

See https://github.com/hybridgroup/cylon-beaglebone for the real beaglebone connector.

Connecting

var Cylon = require('cylon');

Cylon.robot({
  connections: {
    beaglebone: {adaptor: 'beaglebone-stub' }
  },
  devices: {
    pump_motor_on: {
      driver: 'direct-pin',
      pin: 'P9_11',
      connection: 'beaglebone'
    }
  }

  work: function(my) {
    my.pump_motor_on.digitalWrite(1);
  }
}).start();

License

Copyright (c) 2014-2015 Loren West and other contributors. See LICENSE for more details

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago