Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
AIDA-2020 TLU - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
AIDA-2020 TLU - Software
Commits
30389560
Commit
30389560
authored
Feb 08, 2018
by
Paolo Baesso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Led now can be controlled independently. KITT is still riding...
parent
f435e8b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
426 additions
and
8 deletions
+426
-8
TLU_v1e.py
TLU_v1e/scripts/TLU_v1e.py
+26
-1
TLU_powermodule.py
packages/TLU_powermodule.py
+400
-7
No files found.
TLU_v1e/scripts/TLU_v1e.py
View file @
30389560
...
...
@@ -116,7 +116,32 @@ class TLU:
self
.
pwdled
.
setVch
(
1
,
0.9
,
True
)
self
.
pwdled
.
setVch
(
2
,
0.8
,
True
)
self
.
pwdled
.
setVch
(
3
,
0.1
,
True
)
self
.
pwdled
.
setIndicatorRGB
(
2
,
[
1
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
1
,
[
0
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
2
,
[
0
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
3
,
[
0
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
4
,
[
0
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
5
,
[
0
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
6
,
[
0
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
7
,
[
0
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
8
,
[
0
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
9
,
[
0
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
10
,
[
0
,
0
,
1
])
self
.
pwdled
.
setIndicatorRGB
(
11
,
[
0
,
0
,
1
])
#self.pwdled.allGreen()
#time.sleep(0.5)
#self.pwdled.allRed()
#time.sleep(0.5)
#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
()
##################################################################################################################################
##################################################################################################################################
...
...
packages/TLU_powermodule.py
View file @
30389560
# -*- coding: utf-8 -*-
import
uhal
from
I2CuHal
import
I2CCore
#import StringIO
...
...
@@ -17,7 +18,8 @@ class PWRLED:
self
.
verbose
=
True
#Map indicator color based on their position on the expanders: 0-15 are on expander 2, 16 to 31 on expander 1. One indicator is missing the blue component, hence
#the "-1" value.
self
.
indicatorXYZ
=
[(
1
,
0
,
-
1
),
(
3
,
2
,
4
),
(
6
,
5
,
7
),
(
9
,
8
,
10
),
(
12
,
11
,
13
),
(
15
,
14
,
16
),
(
18
,
17
,
19
),
(
21
,
20
,
22
),
(
24
,
23
,
25
),
(
27
,
26
,
28
),
(
30
,
29
,
31
)]
#self.indicatorXYZ= [(1, 0, -1), (3, 2, 4), (6, 5, 7), (9, 8, 10), (12, 11, 13), (15, 14, 16), (18, 17, 19), (21, 20, 22), (24, 23, 25), (27, 26, 28), (30, 29, 31)]
self
.
indicatorXYZ
=
[(
30
,
29
,
31
),
(
27
,
26
,
28
),
(
24
,
23
,
25
),
(
21
,
20
,
22
),
(
18
,
17
,
19
),
(
15
,
14
,
16
),
(
12
,
11
,
13
),
(
9
,
8
,
10
),
(
6
,
5
,
7
),
(
3
,
2
,
4
),
(
1
,
0
,
-
1
)]
self
.
zeDAC_pwr
=
AD5665R
(
self
.
TLU_I2C
,
self
.
pwraddr
)
self
.
zeDAC_pwr
.
setIntRef
(
self
.
intRefOn
,
self
.
verbose
)
...
...
@@ -26,20 +28,20 @@ class PWRLED:
self
.
ledExp1
=
PCA9539PW
(
self
.
TLU_I2C
,
self
.
exp1addr
)
self
.
ledExp1
.
setInvertReg
(
0
,
0x00
)
# 0= normal, 1= inverted
self
.
ledExp1
.
setIOReg
(
0
,
0x00
)
# 0= output, 1= input
self
.
ledExp1
.
setOutputs
(
0
,
0x
1F
)
# If output, set to XX
self
.
ledExp1
.
setOutputs
(
0
,
0x
DA
)
# If output, set to XX
self
.
ledExp1
.
setInvertReg
(
1
,
0x00
)
# 0= normal, 1= inverted
self
.
ledExp1
.
setIOReg
(
1
,
0x00
)
# 0= output, 1= input
self
.
ledExp1
.
setOutputs
(
1
,
0x
1D
)
# If output, set to XX
self
.
ledExp1
.
setOutputs
(
1
,
0x
B6
)
# If output, set to XX
self
.
ledExp2
=
PCA9539PW
(
self
.
TLU_I2C
,
self
.
exp2addr
)
self
.
ledExp2
.
setInvertReg
(
0
,
0x00
)
# 0= normal, 1= inverted
self
.
ledExp2
.
setIOReg
(
0
,
0x00
)
# 0= output, 1= input
self
.
ledExp2
.
setOutputs
(
0
,
0x
85
)
# If output, set to XX
self
.
ledExp2
.
setOutputs
(
0
,
0x
6D
)
# If output, set to XX
self
.
ledExp2
.
setInvertReg
(
1
,
0x00
)
# 0= normal, 1= inverted
self
.
ledExp2
.
setIOReg
(
1
,
0x00
)
# 0= output, 1= input
self
.
ledExp2
.
setOutputs
(
1
,
0x
3E
)
# If output, set to XX
self
.
ledExp2
.
setOutputs
(
1
,
0x
DB
)
# If output, set to XX
print
" TLU POWERMODULE Ready"
def
test
(
self
):
...
...
@@ -63,6 +65,397 @@ class PWRLED:
return
def
setIndicatorRGB
(
self
,
indicator
,
RGB
=
[
0
,
0
,
0
],
verbose
=
False
):
print
self
.
indicatorXYZ
[
indicator
-
1
]
print
self
.
indicatorXYZ
[
indicator
-
1
][
2
]
# Indicator is one of the 11 LEDs on the front panels, labeled from 0 to 10
# RGB allows to switch on (True) or off (False) the corresponding component for that Led
# Note that one LED only has 2 components connected
#print self.indicatorXYZ[indicator-1][2]
if
(
1
<=
indicator
<=
11
):
nowStatus
=
[]
nowStatus
.
extend
(
self
.
ledExp1
.
getOutputs
(
0
))
nowStatus
.
extend
(
self
.
ledExp1
.
getOutputs
(
1
))
nowStatus
.
extend
(
self
.
ledExp2
.
getOutputs
(
0
))
nowStatus
.
extend
(
self
.
ledExp2
.
getOutputs
(
1
))
nowWrd
=
0x00000000
nowWrd
=
nowWrd
|
nowStatus
[
0
]
nowWrd
=
nowWrd
|
(
nowStatus
[
1
]
<<
8
)
nowWrd
=
nowWrd
|
(
nowStatus
[
2
]
<<
16
)
nowWrd
=
nowWrd
|
(
nowStatus
[
3
]
<<
24
)
nextWrd
=
nowWrd
for
iComp
in
range
(
0
,
3
):
indexComp
=
self
.
indicatorXYZ
[
indicator
-
1
][
iComp
]
valueComp
=
not
bool
(
RGB
[
iComp
])
nextWrd
=
self
.
_set_bit
(
nextWrd
,
indexComp
,
int
(
valueComp
))
if
verbose
:
print
"n="
,
iComp
,
"INDEX="
,
indexComp
,
"VALUE="
,
int
(
valueComp
),
"NEXTWORD="
,
bin
(
nextWrd
)
if
verbose
:
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
if
nowStatus
[
0
]
!=
nextStatus
[
0
]:
self
.
ledExp1
.
setOutputs
(
0
,
nextStatus
[
0
])
if
nowStatus
[
1
]
!=
nextStatus
[
1
]:
self
.
ledExp1
.
setOutputs
(
1
,
nextStatus
[
1
])
if
nowStatus
[
2
]
!=
nextStatus
[
2
]:
self
.
ledExp2
.
setOutputs
(
0
,
nextStatus
[
2
])
if
nowStatus
[
3
]
!=
nextStatus
[
3
]:
self
.
ledExp2
.
setOutputs
(
1
,
nextStatus
[
3
])
return
def
_set_bit
(
self
,
v
,
index
,
x
):
"""Set the index:th bit of v to 1 if x is truthy, else to 0, and return the new value."""
if
(
index
==
-
1
):
print
" SETBIT: Index= -1 will be ignored"
else
:
mask
=
1
<<
index
# Compute mask, an integer with just bit 'index' set.
v
&=
~
mask
# Clear the bit indicated by the mask (if x is False)
if
x
:
v
|=
mask
# If x was True, set the bit indicated by the mask.
return
v
def
allGreen
(
self
):
#self.setIndicatorRGB(1, [0, 1, 0])
#self.setIndicatorRGB(2, [0, 1, 0])
#self.setIndicatorRGB(3, [0, 1, 0])
#self.setIndicatorRGB(4, [0, 1, 0])
#self.setIndicatorRGB(5, [0, 1, 0])
#self.setIndicatorRGB(6, [0, 1, 0])
#self.setIndicatorRGB(7, [0, 1, 0])
#self.setIndicatorRGB(8, [0, 1, 0])
#self.setIndicatorRGB(9, [0, 1, 0])
#self.setIndicatorRGB(10, [0, 1, 0])
#self.setIndicatorRGB(11, [0, 1, 0])
self
.
ledExp1
.
setOutputs
(
0
,
218
)
self
.
ledExp1
.
setOutputs
(
1
,
182
)
self
.
ledExp2
.
setOutputs
(
0
,
109
)
self
.
ledExp2
.
setOutputs
(
1
,
219
)
def
allRed
(
self
):
self
.
ledExp1
.
setOutputs
(
0
,
181
)
self
.
ledExp1
.
setOutputs
(
1
,
109
)
self
.
ledExp2
.
setOutputs
(
0
,
219
)
self
.
ledExp2
.
setOutputs
(
1
,
182
)
def
allBlue
(
self
):
self
.
ledExp1
.
setOutputs
(
0
,
111
)
self
.
ledExp1
.
setOutputs
(
1
,
219
)
self
.
ledExp2
.
setOutputs
(
0
,
182
)
self
.
ledExp2
.
setOutputs
(
1
,
109
)
def
allBlack
(
self
):
self
.
ledExp1
.
setOutputs
(
0
,
255
)
self
.
ledExp1
.
setOutputs
(
1
,
255
)
self
.
ledExp2
.
setOutputs
(
0
,
255
)
self
.
ledExp2
.
setOutputs
(
1
,
255
)
def
allWhite
(
self
):
self
.
ledExp1
.
setOutputs
(
0
,
0
)
self
.
ledExp1
.
setOutputs
(
1
,
0
)
self
.
ledExp2
.
setOutputs
(
0
,
0
)
self
.
ledExp2
.
setOutputs
(
1
,
0
)
def
kitt
(
self
):
#self.allBlack()
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
])
self
.
setIndicatorRGB
(
1
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
3
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
3
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
4
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
3
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
4
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
5
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
3
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
4
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
5
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
6
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
3
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
4
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
5
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
6
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
7
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
7
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
8
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
9
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
10
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
11
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
8
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
9
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
10
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
11
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
9
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
10
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
11
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
10
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
11
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
11
,
[
1
,
0
,
0
])
#mid point
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
11
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
10
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
11
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
9
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
10
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
11
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
8
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
9
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
10
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
11
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
1
,
[
0
,
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
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
7
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
8
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
9
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
10
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
11
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
1
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
3
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
4
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
5
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
6
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
7
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
3
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
4
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
5
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
6
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
3
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
4
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
5
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
3
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
4
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
0
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
3
,
[
1
,
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
])
self
.
setIndicatorRGB
(
1
,
[
1
,
0
,
0
])
self
.
setIndicatorRGB
(
2
,
[
1
,
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
])
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
])
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment