intval3/lib/onoffsim/Readme.md

21 lines
662 B
Markdown
Raw Permalink Normal View History

2017-09-17 19:20:38 +00:00
<a name="onoffsim"></a>
## onoffsim
Object representing a fake onoff Gpio class
**Kind**: global constant
<a name="onoffsim.Gpio"></a>
### onoffsim.Gpio(no, dir, additional) ⇒ <code>object</code>
2017-09-17 19:50:14 +00:00
Returns a Gpio class in the case of running on a dev machine
2017-09-17 19:20:38 +00:00
**Kind**: static method of [<code>onoffsim</code>](#onoffsim)
**Returns**: <code>object</code> - Fake Gpio object
| Param | Type | Description |
| --- | --- | --- |
| no | <code>integer</code> | Number of the GPIO pin |
| dir | <code>string</code> | Dirction of the pin, 'input' or 'output' |
| additional | <code>string</code> | Additional instructions for the GPIO pin, for 'input' type |