Skip to main content
Version: Next

DIO

This category contains functions, that enable pulse devices to use DIO (digital input/output).

api.AnalogReadPin(pin)

Read analog value on defined pin.

Disabled by default, FW & HW changes required.

api.DIOwaitForEvent(pin, event, sync, timeout)

Waits for specified event on defined pin. If event occurs, device wakes up and calls onWake() function.

api.DIOreadPin(pin)

Read DIO pin state.

api.DIOwritePin(pin, state)

Writes DIO pin state.