Skip to content
Snippets Groups Projects
Commit f67f3563 authored by Paulus Kruger's avatar Paulus Kruger
Browse files

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
......@@ -48,7 +48,7 @@ drivers:
type: gpio
parameters: [19,26]
- name: GPIO2
- 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
......
from test_common import *
connect("opc.tcp://localhost:4841/")
set_value("UNB2_mask_RW",[True,True])
callmethod("UNB2_on")
disconnect();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment