7 Addresses scanned: 0x74 - 0x77
9 http://www.semiconductors.philips.com/acrobat/datasheets/PCA9539_2.pdf
11 Author: Ben Gardner <bgardner@wabtec.com>
17 The Philips PCA9539 is a 16 bit low power I/O device.
18 All 16 lines can be individually configured as an input or output.
19 The input sense can also be inverted.
20 The 16 lines are split between two bytes.
26 Each is a byte that maps to the 8 I/O bits.
27 A '0' suffix is for bits 0-7, while '1' is for bits 8-15.
29 input[01] - read the current value
30 output[01] - sets the output value
31 direction[01] - direction of each bit: 1=input, 0=output
32 invert[01] - toggle the input bit sense
34 input reads the actual state of the line and is always available.
35 The direction defaults to input for all channels.
41 Note that each output, direction, and invert entry controls 8 lines.
42 You should use the read, modify, write sequence.
43 For example. to set output bit 0 of 1.