Skip to main content

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:

KeyTypeDescription
activebooleanWhether the signal is active.
edgeCountnumberNumber of edges (state changes) of the signal.
activeCountnumberNumber of times the signal became active.
generationnumberA 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