I have/am using Python Libraries dating from August 2018.
The class IO in the ExpanderPi file implements some 'get_port' functions (get_port_direction, get_port_pullups & get_port_polarity). These are missing from the IOPi file. Further, I note that the current release of the libraries omit these functions both in the Expander and the IO files.
Is there a good reason for these omissions?
Presumable, if the get_port functions would still work, then get_pin functions could also be implemented?
My reason for investigating these functions is that I'm looking for a method to determine whether the hardware has already been set up in the case that the software has to restart.
Oops, I've just noticed that the class __init__ function is (needlessly/just for consistency?) writing some registers to their default POR/RST values. I guess that I would have to disable some of that functionality in order to achieve what I want (which is to eliminate lights flickering in the event of software restart)!
I'll have to have a play!