Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyPCC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
PyPCC
Commits
f67f3563
Commit
f67f3563
authored
3 years ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
UNB2 I2C enabled pin set on UNB2_on
parent
ff256b1a
No related branches found
No related tags found
No related merge requests found
Pipeline
#21503
passed
3 years ago
Stage: image
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/UNB2TR.yaml
+10
-1
10 additions, 1 deletion
config/UNB2TR.yaml
scripts/UNB2on.py
+8
-0
8 additions, 0 deletions
scripts/UNB2on.py
with
18 additions
and
1 deletion
config/UNB2TR.yaml
+
10
−
1
View file @
f67f3563
...
...
@@ -48,7 +48,7 @@ drivers:
type
:
gpio
parameters
:
[
19
,
26
]
-
name
:
GPIO
2
-
name
:
I2C_
GPIO
type
:
gpio
parameters
:
[
11
,
13
]
...
...
@@ -258,6 +258,14 @@ variables:
convert_unit
:
bool_invert
dim
:
2
-
name
:
UNB2_I2C_enabled
driver
:
I2C_GPIO
mask
:
UNB2_mask
width
:
1
rw
:
ro
dtype
:
boolean
dim
:
2
-
name
:
UNB2_Front_Panel_LED_colour
description
:
bit 0=Red, 1=Blue, 2=Green
mask
:
UNB2_mask
...
...
@@ -485,6 +493,7 @@ methods:
mask
:
UNB2_mask
driver
:
switch_FP
instructions
:
-
UNB2_I2C_enabled
:
1
#Make sure I2C switches are enabled
-
FP_IO.CONF
:
0xf8
#bit 0-2 output for LED
-
UNB2_PWR_on
:
0
#already inverted
-
UNB2_Front_Panel_LED_colour
:
3
#green
...
...
This diff is collapsed.
Click to expand it.
scripts/UNB2on.py
0 → 100644
+
8
−
0
View file @
f67f3563
from
test_common
import
*
connect
(
"
opc.tcp://localhost:4841/
"
)
set_value
(
"
UNB2_mask_RW
"
,[
True
,
True
])
callmethod
(
"
UNB2_on
"
)
disconnect
();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment