TargetManager
Dependents: TargetManagerManualTest NerfUSTarget
include/Bumper.hpp
- Committer:
- dupm2216
- Date:
- 2017-03-12
- Revision:
- 4:166a5b9c6e91
- Parent:
- 3:70212b0e0939
- Child:
- 9:1069bd8c9472
File content as of revision 4:166a5b9c6e91:
#ifndef BUMPER_HPP #define BUMPER_HPP //Limit switch connections: // C (common): pin to read // NO (normally open): VCC // NC (normally closed): GND //Source: http://www.omron.com.au/service_support/FAQ/FAQ03206/index.asp #include "mbed.h" #include "NerfusCallbackInterface.hpp" class Bumper { public: Bumper(PinName pin, NerfusCallbackInterface& nerfus_callback); private: void bumped(); InterruptIn interrupt_in; NerfusCallbackInterface& nerfus_callback; }; #endif