Commit adbf4a05 authored by David Cussans's avatar David Cussans

Only flash LEDs if power board is detected.

parent c068507e
......@@ -129,6 +129,7 @@ class TLU:
self.DISP.test2("192.168.200.30", "AIDA TLU")
#self.DISP=CFA632(self.TLU_I2C, 0x2A) #
#Instantiate Power/Led Module
dac_addr_module= int(parsed_cfg.get(section_name, "I2C_DACModule_Addr"), 16)
exp1_addr= int(parsed_cfg.get(section_name, "I2C_EXP1Module_Addr"), 16)
......@@ -137,17 +138,21 @@ class TLU:
self.pwdled= PWRLED(self.TLU_I2C, dac_addr_module, pmtCtrVMax, exp1_addr, exp2_addr)
self.pwdled.allGreen()
time.sleep(0.1)
self.pwdled.allBlue()
time.sleep(0.1)
self.pwdled.allBlack()
time.sleep(0.1)
self.pwdled.kitt()
time.sleep(0.1)
self.pwdled.allWhite()
#self.pwdled.test()
if self.displayPresent:
# Cycle LEDs
self.pwdled.allGreen()
time.sleep(0.1)
self.pwdled.allBlue()
time.sleep(0.1)
self.pwdled.allBlack()
time.sleep(0.1)
self.pwdled.kitt()
time.sleep(0.1)
self.pwdled.allWhite()
#self.pwdled.test()
else:
print"No display present, so not attempting to cycle LEDs"
##################################################################################################################################
......
File mode changed from 100644 to 100755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment