From b36e5599c69a808972f0ba49a1088078e4c46b21 Mon Sep 17 00:00:00 2001 From: ghazal-ashrafi <54713538+ghazal-ashrafi@users.noreply.github.com> Date: Fri, 30 Aug 2019 09:40:56 -0400 Subject: [PATCH] this update --- Arduino_stim_1-1/Arduino_stim_1-1.ino | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Arduino_stim_1-1/Arduino_stim_1-1.ino b/Arduino_stim_1-1/Arduino_stim_1-1.ino index a93b32f..2056e68 100644 --- a/Arduino_stim_1-1/Arduino_stim_1-1.ino +++ b/Arduino_stim_1-1/Arduino_stim_1-1.ino @@ -52,9 +52,7 @@ void loop() { switch(cam){ // Switch between high and low states case HIGH: // Indicates Frame is being read if(digitalRead(ins[1]) == HIGH || in == 1){ // If either 1 input or the external shutter is open - for(int i=1; i < out; i++){ // Loop over laser outputs - digitalWrite(outs[i],HIGH); // write outputs to high - } + } count++; // increment counting variable if(count == stim){ // If frame number equals stimulation number @@ -100,4 +98,3 @@ void loop() { } } // end serial loop } // end main loop -