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.
Dependencies: Servo mbed Motor
Diff: main.cpp
- Revision:
- 0:80cc8025b1c0
- Child:
- 4:0ed46a6cdf66
diff -r 000000000000 -r 80cc8025b1c0 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Oct 09 18:13:23 2014 +0000
@@ -0,0 +1,18 @@
+//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???
+}