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: ...@@ -129,6 +129,7 @@ class TLU:
self.DISP.test2("192.168.200.30", "AIDA TLU") self.DISP.test2("192.168.200.30", "AIDA TLU")
#self.DISP=CFA632(self.TLU_I2C, 0x2A) # #self.DISP=CFA632(self.TLU_I2C, 0x2A) #
#Instantiate Power/Led Module #Instantiate Power/Led Module
dac_addr_module= int(parsed_cfg.get(section_name, "I2C_DACModule_Addr"), 16) 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) exp1_addr= int(parsed_cfg.get(section_name, "I2C_EXP1Module_Addr"), 16)
...@@ -137,6 +138,8 @@ class TLU: ...@@ -137,6 +138,8 @@ class TLU:
self.pwdled= PWRLED(self.TLU_I2C, dac_addr_module, pmtCtrVMax, exp1_addr, exp2_addr) self.pwdled= PWRLED(self.TLU_I2C, dac_addr_module, pmtCtrVMax, exp1_addr, exp2_addr)
if self.displayPresent:
# Cycle LEDs
self.pwdled.allGreen() self.pwdled.allGreen()
time.sleep(0.1) time.sleep(0.1)
self.pwdled.allBlue() self.pwdled.allBlue()
...@@ -147,6 +150,8 @@ class TLU: ...@@ -147,6 +150,8 @@ class TLU:
time.sleep(0.1) time.sleep(0.1)
self.pwdled.allWhite() self.pwdled.allWhite()
#self.pwdled.test() #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