int outPin = 5;
int outPin2 = 6;
int outPin4 = 10;
int outPin3 = 11;
VOID Setup
{
Serial.begin(9600); Setup seriële
pinMode (outPin, uitvoer);
pinMode (outPin2, OUTPUT);
pinMode (outPin3, OUTPUT);
pinMode (outPin4, OUTPUT);
}
void loop
{
delay(3000);
analogWrite (outPin, 50);
digitalWrite (outPin2, laag);
analogWrite (outPin3, 50);
digitalWrite (outPin4, laag);
Serial.Print("");
Serial.Print("Slow");
delay(3000);
analogWrite (outPin, 150);
digitalWrite (outPin2, laag);
analogWrite (outPin3, 150);
digitalWrite (outPin4, laag);
Serial.Print("");
Serial.Print("med");
delay(3000);
analogWrite (outPin, 255);
digitalWrite (outPin2, laag);
analogWrite (outPin3, 255);
digitalWrite (outPin4, laag);
Serial.Print("");
Serial.Print("Fast");
delay(3000);
analogWrite (outPin, 0);
digitalWrite (outPin2, laag);
analogWrite (outPin3, 0);
digitalWrite (outPin4, laag);
Serial.Print("");
Serial.Print("Stop");
delay(3000);
analogWrite (outPin2, 100);
digitalWrite (outPin, laag);
analogWrite (outPin4, 100);
digitalWrite (outPin3, laag);
Serial.Print("");
Serial.Print("Backwards");
delay(3000);
analogWrite (outPin, 0);
digitalWrite (outPin2, laag);
analogWrite (outPin3, 0);
digitalWrite (outPin4, laag);
Serial.Print("");
Serial.Print("Stop");
}