i2c-raspberry: new class structure to represent and modify hardware state