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
adbf4a05
Commit
adbf4a05
authored
Oct 05, 2022
by
David Cussans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only flash LEDs if power board is detected.
parent
c068507e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
TLU_v1e.py
TLU_v1e/scripts/TLU_v1e.py
+16
-11
startTLU_v1e.sh
TLU_v1e/scripts/startTLU_v1e.sh
+0
-0
No files found.
TLU_v1e/scripts/TLU_v1e.py
View file @
adbf4a05
...
...
@@ -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"
##################################################################################################################################
...
...
TLU_v1e/scripts/startTLU_v1e.sh
100644 → 100755
View file @
adbf4a05
File mode changed from 100644 to 100755
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