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: mbed
Dependents: DumpTruck turn_pot
main.cpp@0:a8839a6b9e39, 2016-09-20 (annotated)
- Committer:
- simplyellow
- Date:
- Tue Sep 20 19:35:30 2016 +0000
- Revision:
- 0:a8839a6b9e39
- Child:
- 2:33be70fd7c4b
Motor library
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| simplyellow | 0:a8839a6b9e39 | 1 | #include "mbed.h" |
| simplyellow | 0:a8839a6b9e39 | 2 | #include "Motor.h" |
| simplyellow | 0:a8839a6b9e39 | 3 | |
| simplyellow | 0:a8839a6b9e39 | 4 | Serial pc(USBTX, USBRX); |
| simplyellow | 0:a8839a6b9e39 | 5 | |
| simplyellow | 0:a8839a6b9e39 | 6 | Motor m1(p24,p30); |
| simplyellow | 0:a8839a6b9e39 | 7 | //Motor m2(p23,p28); |
| simplyellow | 0:a8839a6b9e39 | 8 | //Motor m3(p23,p28); |
| simplyellow | 0:a8839a6b9e39 | 9 | //Motor m4(p23,p28); |
| simplyellow | 0:a8839a6b9e39 | 10 | |
| simplyellow | 0:a8839a6b9e39 | 11 | int main() { |
| simplyellow | 0:a8839a6b9e39 | 12 | m1.write(1.0f); |
| simplyellow | 0:a8839a6b9e39 | 13 | } |