247
edits
Line 43: | Line 43: | ||
analogWrite(pump_in, i); // turn on the pump_in pin with value "i" | analogWrite(pump_in, i); // turn on the pump_in pin with value "i" | ||
delay(50); // wait for 50 milliseconds | delay(50); // wait for 50 milliseconds | ||
//Serial.println(i); // print the value of i | |||
} | } | ||
analogWrite(pump_in, | analogWrite(pump_in, | ||
Line 62: | Line 61: | ||
analogWrite(pump_out, i); // turn on the pump_in pin with value "i" | analogWrite(pump_out, i); // turn on the pump_in pin with value "i" | ||
delay(50); // wait for 50 milliseconds | delay(50); // wait for 50 milliseconds | ||
//Serial.println(i); // print the value of i | //Serial.println(i); // print the value of i | ||
} | } | ||
analogWrite(pump_out, | analogWrite(pump_out, | ||
0); // turn off the pump | 0); // turn off the pump | ||
// delay: wait for some time | // delay: wait for some time | ||
delay(1000); // wait for one second | delay(1000); // wait for one second | ||
} | } | ||
edits