Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- avinashr
- Date:
- 2015-03-26
- Revision:
- 1:4ec28912c9e7
- Parent:
- 0:27111a353928
- Child:
- 2:2cc70773996b
File content as of revision 1:4ec28912c9e7:
#include "mbed.h"
#include "DCMotor.h"
#include "LeftServoMotor.h"
#include "RightServoMotor.h"
#include "Keypad.h"
//#include "RequestQueue.h"
DigitalOut myled(LED1);
int main() {
initializeKeypad();
DCMotor dcMotor(p21,p17,p18);
LeftServoMotor leftDoor(p22);
RightServoMotor rightDoor(p23);
while(1) {
//dcMotor.forward();
leftDoor.open();
rightDoor.open();
myled = 1;
//pc.printf("dada");
wait(3);
//dcMotor.stop();
leftDoor.close();
rightDoor.close();
myled = 0;
wait(3);
}
}