def readRegister(address):
	try:
		byteval = i2c.readU8(address)
		if (debug):
			print("TSL2561.readRegister: returned 0x%02X from reg 0x%02X" % (byteval, address))
		return byteval
	except __HOLE__:
		print("TSL2561.readRegister: error reading byte from reg 0x%02X" % address)
		return -1
dataset/ETHPy150Open DexterInd/GrovePi/Software/Python/grove_i2c_digital_light_sensor/grove_i2c_digital_light_sensor.py/readRegister