Commit 39923b9f authored by Jesse Heckman's avatar Jesse Heckman
Browse files

minor fixes lightshow

parent ce3a0160
......@@ -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
......
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=50;
ir=100;
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment