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.
L298HBridge.cpp@0:85a98c7707c9, 2017-02-14 (annotated)
- Committer:
- Armand
- Date:
- Tue Feb 14 09:48:32 2017 +0000
- Revision:
- 0:85a98c7707c9
- Child:
- 1:0af00b1a2b52
First commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Armand | 0:85a98c7707c9 | 1 | #include "L298HBridge.h" |
| Armand | 0:85a98c7707c9 | 2 | #include "mbed.h" |
| Armand | 0:85a98c7707c9 | 3 | |
| Armand | 0:85a98c7707c9 | 4 | L298HBridge::L298HBridge(PinName ENpin, PinName FWDpin, PinName REVpin) : _en(ENpin), _fwd(FWDpin), _rev(REVpin) { |
| Armand | 0:85a98c7707c9 | 5 | _fwd = 0; |
| Armand | 0:85a98c7707c9 | 6 | _rev = 0; |
| Armand | 0:85a98c7707c9 | 7 | _en = 0.0; |
| Armand | 0:85a98c7707c9 | 8 | } |
| Armand | 0:85a98c7707c9 | 9 | |
| Armand | 0:85a98c7707c9 | 10 | void L298HBridge::Fwd() { |
| Armand | 0:85a98c7707c9 | 11 | |
| Armand | 0:85a98c7707c9 | 12 | } |
| Armand | 0:85a98c7707c9 | 13 | |
| Armand | 0:85a98c7707c9 | 14 | void L298HBridge::Speed(float PWMPercentage) { |
| Armand | 0:85a98c7707c9 | 15 | |
| Armand | 0:85a98c7707c9 | 16 | } |
| Armand | 0:85a98c7707c9 | 17 |