2 # -*- coding: iso-8859-15 -*-
6 from i2c import i2c_write_reg, i2c_read_reg
10 i2c_write_reg(0x50, 0x1, struct.pack(">H", val))
11 i2c_write_reg(0x50, 0x3, struct.pack(">H", val))
12 i2c_write_reg(0x50, 0x5, struct.pack(">H", val))
13 i2c_write_reg(0x50, 0x7, struct.pack(">H", val))
15 if __name__ == "__main__":