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: 2017NHKpin_config FEP HMC6352 PID QEI R1307 ikarashiMDC omni_wheel
Fork of KANIv3 by
bot/limitSwitch/limitSwitch.h
- Committer:
- number_key
- Date:
- 2017-11-23
- Revision:
- 52:320f910ca6ca
- Parent:
- 49:69a7235d837a
File content as of revision 52:320f910ca6ca:
#ifndef LIMITSWITCH_H #define LIMITSWITCH_H #include "mbed.h" #include "pin_config.h" class Limit { public : Limit(PinName limitSwitch1, PinName limitSwitch2); void frontLimit(); void backLimit(); void resetPosition(); int getPosition(); private : InterruptIn frontSwitch; InterruptIn backSwitch; protected : int position; }; #endif