board-io
An extendable implementation of Johnny Five's IO Plugins.
Implements all required and optional methods, along with the required constants - MODE
, HIGH
, LOW
, etc.
You should configure the relevant pins of your board in your constructor, then emit the ready event.
E.g.:
var util = BoardIO = ; { // call super constructor BoardIO; // .. configure pins this_pins; // wait for an async method or use proccess.nextTick to // signal events process;}util;
Finally implement any of the IO Plugin methods of your choosing:
// implement digitalWriteMyIOprototype { };
Logging
By default BoardIO will print a message when every non-implemented method is invoked. To prevent this, set the quiet
property of the super constructor args to true:
{ // call super constructor BoardIO; }util;
Changelog
3.1.0
- Adds new i2cXXX methods
- Prints deprecation warning when calling old sendI2CXXX methods
3.0.0 - Initial release
- All Firmata methods stubbed out