Thanks for the reply. I've read the tutorial but everytime I try a fix, I just get another error (in the same line). Where does one go to find a freelancer who I can pay to fix this?
Your for loop is definitely incomplete, but I don't know how many times you wish to run the loop, so can't complete it. If it were only twice, for example, you would do this.
1 2 3 4 5 6 7 8 9
void pulse() // output set of pulses
{
//run as long as i<2, increment i each time
for (int i=0;i<2;i++) {
digitalWrite(pulsepin, HIGH); // turn injector on
delay(onTime);
digitalWrite(pulsepin, LOW); // turn injector on
delay(duration);
}
Since for-loops uses semicolons to separate them, you need to add one after that integer "i" which didn't had it written properly and close it with ")".