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@2:3e7baa3e3fec, 2014-09-18 (annotated)
- Committer:
- mehatfie
- Date:
- Thu Sep 18 23:38:11 2014 +0000
- Revision:
- 2:3e7baa3e3fec
- Parent:
- 0:22618cf06f45
- Revamped whole system and now works without stalling or freezing mid program; - now Object Oriented Based in terms of Devices (inheritance of functions)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mehatfie | 2:3e7baa3e3fec | 1 | //#include "Device.hpp" |
| mehatfie | 2:3e7baa3e3fec | 2 | //#include "Motor.hpp" |
| mehatfie | 2:3e7baa3e3fec | 3 | //#include "VoltageDriver.hpp" |
| mehatfie | 2:3e7baa3e3fec | 4 | // |
| mehatfie | 2:3e7baa3e3fec | 5 | //Device* Device::newDevice(int deviceFound){ |
| mehatfie | 2:3e7baa3e3fec | 6 | // |
| mehatfie | 2:3e7baa3e3fec | 7 | // if(MOTOR) |
| mehatfie | 2:3e7baa3e3fec | 8 | // return new Motor(); |
| mehatfie | 2:3e7baa3e3fec | 9 | // else if(VOLTAGE_DRIVER) |
| mehatfie | 2:3e7baa3e3fec | 10 | // return new VoltageDriver(); |
| mehatfie | 2:3e7baa3e3fec | 11 | // |
| mehatfie | 2:3e7baa3e3fec | 12 | //} |
| mehatfie | 2:3e7baa3e3fec | 13 | // |
| mehatfie | 2:3e7baa3e3fec | 14 | // |
| mehatfie | 2:3e7baa3e3fec | 15 | // |