Fixed board states, corrected states functions. Optimized I2C1 code.