nodes for handling of PWM.
npm install @mschaeffler/node-red-pwmNodes for PWM handling in Node-Red.
If the msg property invalid is present in the message, all nodes ignore the message.
```
$ npm install @mschaeffler/node-red-pwm
Measures the duty cycle of a rectangular wave.
The message property to be used as payload can be defined with the Property property.
|msg. | type | description |
|:-------|:-------|:--------------|
|payload | boolean| the rectangular wave signal.|
|msg. | type | description |
|:-------|:-------|:--------------|
|payload | number | duty cycle.|
|cycles | number | number of the high periods in the measurement buffer.|
|quality | number | fill rate of the measurement buffer.|
|config| type | description |
|:-----|:-------|:----------------------------------|
|Property| string | defines the message property to be used as payload.|
|measure time|number|size of the measurement buffer in seconds.|
|Status|boolean|shows the actual value as a node status.|
Generates a PWM signal.
The message property to be used as payload can be defined with the Property property.
|msg. | type | description |
|:-------|:-------|:--------------|
|payload | number | the duty cycle of the PWM between 0 and 1. 0 is off and 1 is continuously on.|
|msg. | type | description |
|:-------|:-------|:--------------|
|payload | boolean| PWM signal of alternating true and false`.|
|config| type | description |
|:-----|:-------|:----------------------------------|
|Property| string | defines the message property to be used as payload.|
|Period|number|periodic time of the PWM in seconds.|
|Status|boolean|shows the actual value as a node status.|
LGPL-2.1