|
|
||
|---|---|---|
| .. | ||
| Readme.md | ||
| index.js | ||
Readme.md
onoffsim
Object representing a fake onoff Gpio class
onoffsim.Gpio(no, dir, additional) ⇒ object
Returns a Gpio class in the case of running on a dev machine
Kind: static method of onoffsim
Returns: object - Fake Gpio object
| Param | Type | Description |
|---|---|---|
| no | integer |
Number of the GPIO pin |
| dir | string |
Dirction of the pin, 'input' or 'output' |
| additional | string |
Additional instructions for the GPIO pin, for 'input' type |