Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jesse Heckman
pbtoolbox
Commits
39923b9f
Commit
39923b9f
authored
Dec 11, 2018
by
Jesse Heckman
Browse files
minor fixes lightshow
parent
ce3a0160
Changes
2
Hide whitespace changes
Inline
Side-by-side
setups/vestibular chair/vPrime/core/experiment/pb_vEndExp.m
View file @
39923b9f
...
...
@@ -27,7 +27,8 @@ function pb_vEndExp
%% Let's run some LEDs instead
pb_lightshow
;
leds
=
ledcontroller_pi
(
'dcn-led06'
,
'dcn-led07'
);
pb_lightshow
(
leds
);
%% Mop up
% Turn off the lights
...
...
setups/vestibular chair/vPrime/led/pb_lightshow.m
View file @
39923b9f
function
pb_lightshow
function
pb_lightshow
(
leds
)
% PB_LIGHTSHOW
%
% PB_LIGHTSHOW turns on the spectecular lightshow.
% PB_LIGHTSHOW
(leds)
turns on the spectecular lightshow.
%
% See also PB_VENDEXP
...
...
@@ -16,7 +16,7 @@ function pb_lightshow
seq1
=
[
0
:
2
:
9
fliplr
(
16
:
2
:
24
)];
seq2
=
[
1
:
2
:
9
fliplr
(
17
:
2
:
24
)];
ir
=
5
0
;
ir
=
10
0
;
ig
=
ir
;
for
i
=
1
:
n
...
...
@@ -28,8 +28,7 @@ function pb_lightshow
s
(
i
)
.
intensity
(
'r'
,
ir
);
s
(
i
)
.
intensity
(
'g'
,
ig
);
end
leds
=
ledcontroller_pi
(
'dcn-led06'
,
'dcn-led07'
);
leds
.
write
(
s
);
for
i
=
1
:
n
...
...
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