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: BridgeDriver FrontPanelButtons MCP23017 SDFileSystem TextLCD mbed
Device.cpp@0:22618cf06f45, 2014-09-16 (annotated)
- Committer:
- mehatfie
- Date:
- Tue Sep 16 15:28:59 2014 +0000
- Revision:
- 0:22618cf06f45
- Child:
- 2:3e7baa3e3fec
- Initial Commit; - Code is a mess (in mid transition of general code architecture); - Functionality work to drive motors in both direction and turn off; - Delay functionality working; - Able to read a program from a txt file and perform functionality
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mehatfie | 0:22618cf06f45 | 1 | /*#include "Device.hpp" |
| mehatfie | 0:22618cf06f45 | 2 | #include "Motor.hpp" |
| mehatfie | 0:22618cf06f45 | 3 | #include "VoltageDriver.hpp" |
| mehatfie | 0:22618cf06f45 | 4 | |
| mehatfie | 0:22618cf06f45 | 5 | Device* Device::newDevice(int deviceFound){ |
| mehatfie | 0:22618cf06f45 | 6 | |
| mehatfie | 0:22618cf06f45 | 7 | if(MOTOR) |
| mehatfie | 0:22618cf06f45 | 8 | return new Motor(); |
| mehatfie | 0:22618cf06f45 | 9 | else if(VOLTAGE_DRIVER) |
| mehatfie | 0:22618cf06f45 | 10 | return new VoltageDriver(); |
| mehatfie | 0:22618cf06f45 | 11 | |
| mehatfie | 0:22618cf06f45 | 12 | } |
| mehatfie | 0:22618cf06f45 | 13 | |
| mehatfie | 0:22618cf06f45 | 14 | */ |
| mehatfie | 0:22618cf06f45 | 15 |