code mostly done but i2c seems broken