(require("MotorHat"))(optsopt) → {module:MotorHat~motorhat}
Creates a new MotorHat controller.
Pass in an options object to generate an uninitialized MotorHat object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
Properties
|
Basic Usage:
const motorHat = require('motor-hat')({addr: 0x6F}).init();