Commit b965ec88 authored by Paolo Baesso's avatar Paolo Baesso

Basic LED control now working. Use pwdled.setIndicatorRGB(XX, [A, B, C]) to set…

Basic LED control now working. Use pwdled.setIndicatorRGB(XX, [A, B, C]) to set indicator XX to RGB components A, B, C.
parent 30389560
......@@ -128,20 +128,20 @@ class TLU:
self.pwdled.setIndicatorRGB(10, [0, 0, 1])
self.pwdled.setIndicatorRGB(11, [0, 0, 1])
#self.pwdled.allGreen()
self.pwdled.allGreen()
#time.sleep(0.5)
#self.pwdled.allRed()
#time.sleep(0.5)
#self.pwdled.allBlue()
self.pwdled.allBlue()
#time.sleep(0.5)
self.pwdled.allBlack()
time.sleep(0.5)
#self.pwdled.allWhite()
#time.sleep(0.5)
#self.pwdled.kitt()
#self.pwdled.kitt()
#self.pwdled.kitt()
self.pwdled.kitt()
self.pwdled.kitt()
self.pwdled.kitt()
self.pwdled.kitt()
self.pwdled.allBlack()
##################################################################################################################################
##################################################################################################################################
......
......@@ -91,8 +91,8 @@ class PWRLED:
print "NOW ", bin(nowWrd)
print "NEXT ", bin(nextWrd)
nextStatus= [0xFF & nextWrd, 0xFF & (nextWrd >> 8), 0xFF & (nextWrd >> 16), 0xFF & (nextWrd >> 24) ]
print " NOW", nowStatus
print " NEXT ", nextStatus
#print " NOW", nowStatus
#print " NEXT ", nextStatus
if nowStatus[0] != nextStatus[0]:
self.ledExp1.setOutputs(0, nextStatus[0])
if nowStatus[1] != nextStatus[1]:
......@@ -459,3 +459,15 @@ class PWRLED:
self.setIndicatorRGB(9, [0, 0, 0])
self.setIndicatorRGB(10, [0, 0, 0])
self.setIndicatorRGB(11, [0, 0, 0])
self.setIndicatorRGB(1, [1, 0, 0])
self.setIndicatorRGB(2, [0, 0, 0])
self.setIndicatorRGB(3, [0, 0, 0])
self.setIndicatorRGB(4, [0, 0, 0])
self.setIndicatorRGB(5, [0, 0, 0])
self.setIndicatorRGB(6, [0, 0, 0])
self.setIndicatorRGB(7, [0, 0, 0])
self.setIndicatorRGB(8, [0, 0, 0])
self.setIndicatorRGB(9, [0, 0, 0])
self.setIndicatorRGB(10, [0, 0, 0])
self.setIndicatorRGB(11, [0, 0, 0])
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