removed unused values to make compile
removed spi code, added i2c
fixed compilation issue with brkt