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.
Diff: GlobalObjects.h
- Revision:
- 2:2cc70773996b
- Child:
- 3:c3d716d6c6a7
diff -r 4ec28912c9e7 -r 2cc70773996b GlobalObjects.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GlobalObjects.h Thu Mar 26 06:10:56 2015 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" +#include "DCMotor.h" +#include "LeftServoMotor.h" +#include "RightServoMotor.h" +#include "RequestQueue.h" + +#ifndef GLOBALOBJECTS_H +#define GLOBALOBJECTS_H + +Serial pc(USBTX, USBRX); +DCMotor dcMotor(p21,p17,p18); +LeftServoMotor leftDoor(p22); +RightServoMotor rightDoor(p23); +RequestQueue queue; +int currentFloor = 1; + +void floorChosen(int); +void doStopOperation(); +void floorReached(int); +void floorDetected(int); + +#endif \ No newline at end of file