Stap 3: programma
int lmotor = 13; verklaart de twee motoren
int rmotor = 12;
VOID Setup
{
pinMode (lmotor, OUTPUT);
pinMode (rmotor, OUTPUT);
}
void loop
{
digitalWrite (lmotor, hoge);
digitalWrite (rmotor, hoge);
delay(1000);
digitalWrite (lmotor, hoge);
digitalWrite (rmotor, laag);
delay(1000);
}