Added getPinMode
            Fixed I2C saving state (fix #270)