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.
Dependents: Cube_Mini_Solution Cube_Mini_Solution
Revision 1:c20c6a8e709b, committed 2020-01-31
- Comitter:
- BoulusAJ
- Date:
- Fri Jan 31 17:59:11 2020 +0000
- Parent:
- 0:5c2ad81551aa
- Commit message:
- Latest changes.
Changed in this revision
QEI.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/QEI.cpp Thu Sep 02 16:48:55 2010 +0000 +++ b/QEI.cpp Fri Jan 31 17:59:11 2020 +0000 @@ -127,6 +127,13 @@ * Includes */ #include "QEI.h" +#include "mbed.h" + + +// Serial PC Communication +#define UART_TX p9 +#define UART_RX p11 +Serial pc2(UART_TX, UART_RX); QEI::QEI(PinName channelA, PinName channelB, @@ -180,7 +187,6 @@ } int QEI::getPulses(void) { - return pulses_; }