from machine import Pin, I2C expAddr = 0x27 # I2C Expander I/O i2c.writeto(expAddr, '\x00') # Clear All i2c.writeto(expAddr, '\x7F') # Fill All