![](/media/cache/group/220px-Herndon_Monument_Climb.jpg.50x50_q85.jpg)
Start of project 2
Dependencies: Motor Servo mbed mbed-rtos
main.cpp
- Committer:
- nhersom
- Date:
- 2018-10-10
- Revision:
- 3:50cee0fef078
- Parent:
- 0:9347308e8e1a
- Child:
- 4:a3e95c9d56d5
File content as of revision 3:50cee0fef078:
#include "mbed.h" #include "stdio.h" #include "Motor.h" #include "math.h" Motor m(p26,p30,p29); DigitalIn fire (p16,p17,p18,p19,p20); int main() { fire.read; if (fire==1) { while(1) { m.speed(1); wait (.15); m.speed(0); wait (1); break; } while(1) { m.speed(-.25); wait(.6); m.speed(0); wait(1); break; } } } //end of int main