listGpioSignals2 v6.0
List all GPIO signals and expressions, with the state and edge counts of each.
Parameter
None.
Return value
An object with the signal and expression names as keys. Each value is an object with the following keys:
| Key | Type | Description |
|---|---|---|
| active | boolean | Whether the signal is active. |
| edgeCount | number | Number of edges (state changes) of the signal. |
| activeCount | number | Number of times the signal became active. |
| generation | number | A number that changes whenever the signal changes, for use with waitForGpioSignalChange. |
This is the same as getGpioSignal returns for each signal,
without the deprecated state.
note
The deprecated listGpioSignals returns the boolean state of each signal instead of an object.
Example
listGpioSignals2