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: Encoder MODSERIAL mbed
Fork of P_controller_motor_Bouke by
main.cpp
- Committer:
- bscheltinga
- Date:
- 2015-09-21
- Revision:
- 11:c5befe79aa53
- Parent:
- 10:1d8b21515ed1
- Child:
- 12:27abe8ee588c
File content as of revision 11:c5befe79aa53:
#include "mbed.h"
#include "HIDScope.h"
#include "encoder.h"
#include "MODSERIAL.h"
Encoder encoder1(D13,D12);
DigitalOut motor2direction(D4); //D4 en D5 zijn motor 2 (op het motorshield)
PwmOut motor2speed(D5);
int main()
{
motor2direction = 1;
motor2speed = 0.2f;
}
