GMU:Sustainable Aesthetics/Passion Asasu: Difference between revisions

From Medien Wiki
No edit summary
Line 59: Line 59:
   255; i >
   255; i >
   60; i--) {
   60; i--) {
   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
Line 66: Line 65:
   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