67-2WD Araba temel hareketler

2WD Araba Motorlar ve bağlantılar test için temel hareketler.

					

void setup() {
    ileri();
    delay(1000);
    dur();
    delay(1000);
    geri();
    delay(1000);
    dur();
    delay(1000);
    sag();
    delay(1000);
    dur();
    delay(1000);
    sol();
    delay(1000);
    dur();
    delay(1000);
      
}


void dur()
    {
        analogWrite(5,0);
        analogWrite(6,0);
        analogWrite(9,0);
        analogWrite(10,0);
    }

void ileri()
    {
        analogWrite(5,255);
        analogWrite(6,0);
        analogWrite(9,0);
        analogWrite(10,255);
    }

void geri()
    {
        analogWrite(5,0);
        analogWrite(6,255);
        analogWrite(9,255);
        analogWrite(10,0);
    }

void sag()
    {
        analogWrite(5,0);
        analogWrite(6,0);
        analogWrite(9,0);
        analogWrite(10,255);
    }

void sol()
    {
        analogWrite(5,255);
        analogWrite(6,0);
        analogWrite(9,0);
        analogWrite(10,0);
    }

void loop() {
    
}