def write16(self, register, value, little_endian=True):
value = value & <NUM_LIT><EOL>value_low = value & <NUM_LIT><EOL>value_high = (value >> <NUM_LIT:8>) & <NUM_LIT><EOL>if not little_endian:<EOL><INDENT>value_low, value_high = value_high, value_low<EOL><DEDENT>self._idle()<EOL>self._transaction_start()<EOL>self._i2c_start()<EOL>self._i2c_write_bytes([self._address_byte(False), register, value_low,<EOL>value_high])<EOL>self._i2c_stop()<EOL>response = self._transaction_end()<EOL>self._verify_acks(response)<EOL>
Write a 16-bit value to the specified register.