Eimantas Bernotavicius / Mbed 2 deprecated Buggy_Project

Dependencies:   QEI mbed

main.cpp

Committer:
Weranest
Date:
2018-02-21
Revision:
3:c9df852ad9ac
Parent:
2:7f4be54c7257
Child:
4:48d390356fba

File content as of revision 3:c9df852ad9ac:

#include "mbed.h"
#include "pwm.h"

int main(){
    
    motorSetup();
while(1){
    if(joystickCenter == 1){
    wait(0.5);
    buggyGoF();
    wait(2);
    buggyGoLeft();
    wait(2);
    buggyGoRight();
    wait(2);
    buggyStop();
    }
}

}