1.0.0 • Published 1 year ago

@clysema/ebrain-iot-analog v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Pigeon analog module

A module for the Pigeon analog outputs

Config

config/analog.json

{
  "name": "Aout",
  "outputs": [
    {
      "name": "out1",
      "init": 25,
      "mask": 1
    },
    {
      "name": "out2",
      "init": 25,
      "mask": 2
    }      
  ]
}

Functions

set(deviceName, value, outName)

Examples:

.set("Aout", [25, 50])     // using an array
.set("Aout", 33, "out1")   // using out name
.set("Aout", 33, 1)        // using out mask (1, 2)