def writeRegister(address, val):
	try:
		i2c.write8(address, val)
		if (debug):
			print("TSL2561.writeRegister: wrote 0x%02X to reg 0x%02X" % (val, address))
	except __HOLE__:
		print("TSL2561.writeRegister: error writing byte to reg 0x%02X" % address)
		return -1
dataset/ETHPy150Open DexterInd/GrovePi/Software/Python/grove_i2c_digital_light_sensor/grove_i2c_digital_light_sensor.py/writeRegister