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.
main.cpp@0:d95988777181, 2019-07-10 (annotated)
- Committer:
- Tomo1213
- Date:
- Wed Jul 10 13:02:53 2019 +0000
- Revision:
- 0:d95988777181
commit;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Tomo1213 | 0:d95988777181 | 1 | #include "mbed.h" |
| Tomo1213 | 0:d95988777181 | 2 | #include "QEI.h" |
| Tomo1213 | 0:d95988777181 | 3 | |
| Tomo1213 | 0:d95988777181 | 4 | QEI Encoder_R(PA_6,PA_7,NC,1000,QEI::X2_ENCODING); |
| Tomo1213 | 0:d95988777181 | 5 | QEI Encoder_L(PA_8,PA_9,NC,1000,QEI::X2_ENCODING); |
| Tomo1213 | 0:d95988777181 | 6 | |
| Tomo1213 | 0:d95988777181 | 7 | int main(){ |
| Tomo1213 | 0:d95988777181 | 8 | while(1){ |
| Tomo1213 | 0:d95988777181 | 9 | |
| Tomo1213 | 0:d95988777181 | 10 | printf("%d %d\r\n",Encoder_R.getPulses(),Encoder_L.getPulses()); |
| Tomo1213 | 0:d95988777181 | 11 | |
| Tomo1213 | 0:d95988777181 | 12 | } |