Numato.Utils (numato_gpio v0.1.1) View Source

Link to this section Summary

Link to this section Functions

Link to this function

get_changed_ports(previous, current, iodir)

View Source

Returns list of changed ports.

Examples

iex> Numato.Utils.get_changed_ports(<<0xFF>>, <<0xFE>>, <<0xFF>>) [{0, 0}]

iex> Numato.Utils.get_changed_ports(<<0xFC>>, <<0xFF>>, <<0xFF>>) [{0, 1}, {1, 1}]

iex> Numato.Utils.get_changed_ports(<<0xFC>>, <<0xFF>>, <<0x01>>) [{0, 1}]