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
main.cpp
- Committer:
- mazdo25
- Date:
- 2019-02-18
- Revision:
- 0:f45212966fb1
- Child:
- 1:813f4b17ae65
File content as of revision 0:f45212966fb1:
#include "mbed.h"
#include "Encoder.h"
#include "PID.h"
#include "Wheel.h"
#include "QEI.h"
//blue D8
//Green D9
//Red D5
int main() {
DigitalOut enable(PC_12);
enable.write(1);
Encoder* LE = new Encoder(A5,A4);
Encoder* RE = new Encoder(A2,A3);
Wheel* leftWheel = new Wheel(LE,PB_7,PB_14);
Wheel* rightWheel = new Wheel(RE,PA_15,PB_13);
}