Presentation code for PROJECT #1 - ES200 Fall 2014

Dependencies:   Servo mbed Motor

main.cpp

Committer:
cstab94
Date:
2014-10-09
Revision:
0:80cc8025b1c0
Child:
4:0ed46a6cdf66

File content as of revision 0:80cc8025b1c0:

//MIDN 3/C W. O'Brien, D. Thompson-Sevcik, C. Stabler
//Candy scooper program for Project #1, ES200 Fall 2014
//Modifications: 9 OCT- Initial code

#include "mbed.h"
#include "Motor.h"
#include "Servo.h"
 
 Motor m(p26, p29, p30);    //name of motor is 'm'
 Servo scoop(p21);          //name of claw servo is 'scoop'
 Servo arm(p22);            //name of assembly arm servo is 'arm'
                            //Declaration of switches
int main() {
                            //Move scoop up and down- one switch
                            //Move arm up and down- two swtiches (one for up and one for down) SET LIMITS!!!
                            //Move DC motor left and right- two switches VERY SLOWLY
                            //Set up a secret program to do a scoop-turn-dump motion all in one???
}