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 TrapezoidControl QEI Pulse LM61CIZ
Input/Encoder/Encoder.cpp
- Committer:
- M_souta
- Date:
- 2019-09-18
- Revision:
- 24:370616a56815
- Parent:
- 22:7d93f79a3686
File content as of revision 24:370616a56815:
#include "Encoder.h"
#include "mbed.h"
const int PerRev = 256;
QEI encoder[] = {
QEI(ECD_A_0,ECD_B_0,NC,PerRev,QEI::X4_ENCODING),
QEI(ECD_A_1,ECD_B_1,NC,PerRev,QEI::X4_ENCODING),
QEI(ECD_A_2,ECD_B_2,NC,PerRev,QEI::X4_ENCODING),
QEI(ECD_A_3,ECD_B_3,NC,PerRev,QEI::X4_ENCODING),
};
namespace ENCODER {
void ECD::Initialize() {
}
}