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: ROCO104_Buggy BuggyDesign
clickers.cpp
- Committer:
- Mikebob
- Date:
- 2020-02-10
- Revision:
- 0:cfb1fcccadd6
- Child:
- 1:d5b76569b45c
File content as of revision 0:cfb1fcccadd6:
#include "mbed.h"
#include "motor.h"
#include "clickers.h"
extern DigitalIn microswitch1; //Instance of the DigitalIn class called 'microswitch1'
extern DigitalIn microswitch2; //Instance of the DigitalIn class called 'microswitch2'
extern Motor Wheel;
void RevStop()
{
microswitch1.read();
while (microswitch1 == true)
{
microswitch1.read();
Wheel.Stop();
}
}