added support for reading the pins in and setting the matrix out also.